Lines Matching full:sr

49 	error = xchk_rtgroup_init(sc, sc->sm->sm_agno, &sc->sr);  in xchk_setup_rtrmapbt()
57 error = xchk_install_live_inode(sc, rtg_rmap(sc->sr.rtg)); in xchk_setup_rtrmapbt()
61 return xchk_rtgroup_lock(sc, &sc->sr, XCHK_RTGLOCK_ALL); in xchk_setup_rtrmapbt()
182 if (!sc->sr.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rtrmapbt_xref_rtrefc()
191 error = xfs_refcount_find_shared(sc->sr.refc_cur, irec->rm_startblock, in xchk_rtrmapbt_xref_rtrefc()
193 if (!xchk_should_check_xref(sc, &error, &sc->sr.refc_cur)) in xchk_rtrmapbt_xref_rtrefc()
196 xchk_btree_xref_set_corrupt(sc, sc->sr.refc_cur, 0); in xchk_rtrmapbt_xref_rtrefc()
209 xfs_rgbno_to_rtb(sc->sr.rtg, irec->rm_startblock), in xchk_rtrmapbt_xref()
247 struct xfs_inode *ip = rtg_rmap(sc->sr.rtg); in xchk_rtrmapbt()
257 return xchk_btree(sc, sc->sr.rmap_cur, xchk_rtrmapbt_rec, &oinfo, &cr); in xchk_rtrmapbt()
270 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_no_rt_owner()
273 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_rt_owner()
274 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_xref_has_no_rt_owner()
277 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_has_no_rt_owner()
290 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_rt_owner()
293 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_rt_owner()
294 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_xref_has_rt_owner()
297 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_has_rt_owner()
311 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_only_rt_owned_by()
314 error = xfs_rmap_count_owners(sc->sr.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_rt_owned_by()
315 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_xref_is_only_rt_owned_by()
318 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_is_only_rt_owned_by()
320 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_is_only_rt_owned_by()
322 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_is_only_rt_owned_by()