• Home
  • Raw
  • Download

Lines Matching refs:sc

24 	struct xfs_scrub	*sc,  in xchk_setup_ag_allocbt()  argument
27 return xchk_setup_ag_btree(sc, ip, false); in xchk_setup_ag_allocbt()
37 struct xfs_scrub *sc, in xchk_allocbt_xref_other() argument
47 if (sc->sm->sm_type == XFS_SCRUB_TYPE_BNOBT) in xchk_allocbt_xref_other()
48 pcur = &sc->sa.cnt_cur; in xchk_allocbt_xref_other()
50 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other()
51 if (!*pcur || xchk_skip_xref(sc->sm)) in xchk_allocbt_xref_other()
55 if (!xchk_should_check_xref(sc, &error, pcur)) in xchk_allocbt_xref_other()
58 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
63 if (!xchk_should_check_xref(sc, &error, pcur)) in xchk_allocbt_xref_other()
66 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
71 xchk_btree_xref_set_corrupt(sc, *pcur, 0); in xchk_allocbt_xref_other()
77 struct xfs_scrub *sc, in xchk_allocbt_xref() argument
81 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_allocbt_xref()
84 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref()
85 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref()
86 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref()
87 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref()
107 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_allocbt_rec()
109 xchk_allocbt_xref(bs->sc, bno, len); in xchk_allocbt_rec()
117 struct xfs_scrub *sc, in xchk_allocbt() argument
122 cur = which == XFS_BTNUM_BNO ? sc->sa.bno_cur : sc->sa.cnt_cur; in xchk_allocbt()
123 return xchk_btree(sc, cur, xchk_allocbt_rec, &XFS_RMAP_OINFO_AG, NULL); in xchk_allocbt()
128 struct xfs_scrub *sc) in xchk_bnobt() argument
130 return xchk_allocbt(sc, XFS_BTNUM_BNO); in xchk_bnobt()
135 struct xfs_scrub *sc) in xchk_cntbt() argument
137 return xchk_allocbt(sc, XFS_BTNUM_CNT); in xchk_cntbt()
143 struct xfs_scrub *sc, in xchk_xref_is_used_space() argument
150 if (!sc->sa.bno_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_used_space()
153 error = xfs_alloc_has_record(sc->sa.bno_cur, agbno, len, &is_freesp); in xchk_xref_is_used_space()
154 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_xref_is_used_space()
157 xchk_btree_xref_set_corrupt(sc, sc->sa.bno_cur, 0); in xchk_xref_is_used_space()