Lines Matching refs:sc
31 struct xfs_scrub *sc, in xchk_setup_ag_allocbt() argument
34 return xchk_setup_ag_btree(sc, ip, false); in xchk_setup_ag_allocbt()
44 struct xfs_scrub *sc, in xchk_allocbt_xref_other() argument
54 if (sc->sm->sm_type == XFS_SCRUB_TYPE_BNOBT) in xchk_allocbt_xref_other()
55 pcur = &sc->sa.cnt_cur; in xchk_allocbt_xref_other()
57 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other()
58 if (!*pcur || xchk_skip_xref(sc->sm)) in xchk_allocbt_xref_other()
62 if (!xchk_should_check_xref(sc, &error, pcur)) in xchk_allocbt_xref_other()
65 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
70 if (!xchk_should_check_xref(sc, &error, pcur)) in xchk_allocbt_xref_other()
73 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
78 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
84 struct xfs_scrub *sc, in xchk_allocbt_xref() argument
88 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_allocbt_xref()
91 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref()
92 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref()
93 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref()
94 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref()
115 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_allocbt_rec()
117 xchk_allocbt_xref(bs->sc, bno, len); in xchk_allocbt_rec()
125 struct xfs_scrub *sc, in xchk_allocbt() argument
132 cur = which == XFS_BTNUM_BNO ? sc->sa.bno_cur : sc->sa.cnt_cur; in xchk_allocbt()
133 return xchk_btree(sc, cur, xchk_allocbt_rec, &oinfo, NULL); in xchk_allocbt()
138 struct xfs_scrub *sc) in xchk_bnobt() argument
140 return xchk_allocbt(sc, XFS_BTNUM_BNO); in xchk_bnobt()
145 struct xfs_scrub *sc) in xchk_cntbt() argument
147 return xchk_allocbt(sc, XFS_BTNUM_CNT); in xchk_cntbt()
153 struct xfs_scrub *sc, in xchk_xref_is_used_space() argument
160 if (!sc->sa.bno_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_used_space()
163 error = xfs_alloc_has_record(sc->sa.bno_cur, agbno, len, &is_freesp); in xchk_xref_is_used_space()
164 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_xref_is_used_space()
167 xchk_btree_xref_set_corrupt(sc, sc->sa.bno_cur, 0); in xchk_xref_is_used_space()