Lines Matching refs:sc

25 	struct xfs_scrub	*sc)  in xchk_setup_ag_rmapbt()  argument
27 return xchk_setup_ag_btree(sc, false); in xchk_setup_ag_rmapbt()
35 struct xfs_scrub *sc, in xchk_rmapbt_xref_refc() argument
46 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rmapbt_xref_refc()
55 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc()
57 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_rmapbt_xref_refc()
60 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_rmapbt_xref_refc()
66 struct xfs_scrub *sc, in xchk_rmapbt_xref() argument
72 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rmapbt_xref()
75 xchk_xref_is_used_space(sc, agbno, len); in xchk_rmapbt_xref()
77 xchk_xref_is_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref()
79 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref()
81 xchk_xref_is_cow_staging(sc, irec->rm_startblock, in xchk_rmapbt_xref()
84 xchk_rmapbt_xref_refc(sc, irec); in xchk_rmapbt_xref()
103 if (!xchk_btree_process_error(bs->sc, bs->cur, 0, &error)) in xchk_rmapbt_rec()
108 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
118 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
127 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
137 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
140 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
143 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
146 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
150 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
155 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
158 xchk_rmapbt_xref(bs->sc, &irec); in xchk_rmapbt_rec()
166 struct xfs_scrub *sc) in xchk_rmapbt() argument
168 return xchk_btree(sc, sc->sa.rmap_cur, xchk_rmapbt_rec, in xchk_rmapbt()
175 struct xfs_scrub *sc, in xchk_xref_check_owner() argument
184 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_check_owner()
187 error = xfs_rmap_record_exists(sc->sa.rmap_cur, bno, len, oinfo, in xchk_xref_check_owner()
189 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_xref_check_owner()
192 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_xref_check_owner()
198 struct xfs_scrub *sc, in xchk_xref_is_owned_by() argument
203 xchk_xref_check_owner(sc, bno, len, oinfo, true); in xchk_xref_is_owned_by()
209 struct xfs_scrub *sc, in xchk_xref_is_not_owned_by() argument
214 xchk_xref_check_owner(sc, bno, len, oinfo, false); in xchk_xref_is_not_owned_by()
220 struct xfs_scrub *sc, in xchk_xref_has_no_owner() argument
227 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_no_owner()
230 error = xfs_rmap_has_record(sc->sa.rmap_cur, bno, len, &has_rmap); in xchk_xref_has_no_owner()
231 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_xref_has_no_owner()
234 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_xref_has_no_owner()