Lines Matching full:sc
28 struct xfs_scrub *sc) in xchk_setup_ag_allocbt() argument
32 if (xchk_need_intent_drain(sc)) in xchk_setup_ag_allocbt()
33 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_ag_allocbt()
35 error = xchk_setup_ag_btree(sc, false); in xchk_setup_ag_allocbt()
39 if (xchk_could_repair(sc)) in xchk_setup_ag_allocbt()
40 return xrep_setup_ag_allocbt(sc); in xchk_setup_ag_allocbt()
58 struct xfs_scrub *sc, in xchk_allocbt_xref_other() argument
68 if (sc->sm->sm_type == XFS_SCRUB_TYPE_BNOBT) in xchk_allocbt_xref_other()
69 pcur = &sc->sa.cnt_cur; in xchk_allocbt_xref_other()
71 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other()
72 if (!*pcur || xchk_skip_xref(sc->sm)) in xchk_allocbt_xref_other()
76 if (!xchk_should_check_xref(sc, &error, pcur)) in xchk_allocbt_xref_other()
79 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
84 if (!xchk_should_check_xref(sc, &error, pcur)) in xchk_allocbt_xref_other()
87 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
92 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
98 struct xfs_scrub *sc, in xchk_allocbt_xref() argument
104 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_allocbt_xref()
107 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref()
108 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref()
109 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref()
110 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref()
111 xchk_xref_is_not_cow_staging(sc, agbno, len); in xchk_allocbt_xref()
121 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_allocbt_mergeable()
127 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_allocbt_mergeable()
143 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_allocbt_rec()
148 xchk_allocbt_xref(bs->sc, &irec); in xchk_allocbt_rec()
156 struct xfs_scrub *sc) in xchk_allocbt() argument
161 switch (sc->sm->sm_type) { in xchk_allocbt()
163 cur = sc->sa.bno_cur; in xchk_allocbt()
166 cur = sc->sa.cnt_cur; in xchk_allocbt()
173 return xchk_btree(sc, cur, xchk_allocbt_rec, &XFS_RMAP_OINFO_AG, &ca); in xchk_allocbt()
179 struct xfs_scrub *sc, in xchk_xref_is_used_space() argument
186 if (!sc->sa.bno_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_used_space()
189 error = xfs_alloc_has_records(sc->sa.bno_cur, agbno, len, &outcome); in xchk_xref_is_used_space()
190 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_xref_is_used_space()
193 xchk_btree_xref_set_corrupt(sc, sc->sa.bno_cur, 0); in xchk_xref_is_used_space()