Lines Matching refs:sc
27 struct xfs_scrub *sc, in __xchk_btree_process_error() argument
40 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_btree_process_error()
45 sc->sm->sm_flags |= errflag; in __xchk_btree_process_error()
50 trace_xchk_ifork_btree_op_error(sc, cur, level, in __xchk_btree_process_error()
53 trace_xchk_btree_op_error(sc, cur, level, in __xchk_btree_process_error()
62 struct xfs_scrub *sc, in xchk_btree_process_error() argument
67 return __xchk_btree_process_error(sc, cur, level, error, in xchk_btree_process_error()
73 struct xfs_scrub *sc, in xchk_btree_xref_process_error() argument
78 return __xchk_btree_process_error(sc, cur, level, error, in xchk_btree_xref_process_error()
85 struct xfs_scrub *sc, in __xchk_btree_set_corrupt() argument
91 sc->sm->sm_flags |= errflag; in __xchk_btree_set_corrupt()
94 trace_xchk_ifork_btree_error(sc, cur, level, in __xchk_btree_set_corrupt()
97 trace_xchk_btree_error(sc, cur, level, in __xchk_btree_set_corrupt()
103 struct xfs_scrub *sc, in xchk_btree_set_corrupt() argument
107 __xchk_btree_set_corrupt(sc, cur, level, XFS_SCRUB_OFLAG_CORRUPT, in xchk_btree_set_corrupt()
113 struct xfs_scrub *sc, in xchk_btree_xref_set_corrupt() argument
117 __xchk_btree_set_corrupt(sc, cur, level, XFS_SCRUB_OFLAG_XCORRUPT, in xchk_btree_xref_set_corrupt()
141 trace_xchk_btree_rec(bs->sc, cur, 0); in xchk_btree_rec()
145 xchk_btree_set_corrupt(bs->sc, cur, 0); in xchk_btree_rec()
157 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec()
166 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec()
188 trace_xchk_btree_key(bs->sc, cur, level); in xchk_btree_key()
193 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_key()
204 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_key()
213 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_key()
239 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_ptr_ok()
261 if (!xchk_btree_process_error(bs->sc, cur, level + 1, &error) || in xchk_btree_block_check_sibling()
275 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_block_check_sibling()
285 if (!xchk_btree_process_error(bs->sc, cur, level + 1, &error)) in xchk_btree_block_check_sibling()
288 xchk_btree_set_corrupt(bs->sc, cur, level + 1); in xchk_btree_block_check_sibling()
298 xchk_buffer_recheck(bs->sc, pbp); in xchk_btree_block_check_sibling()
301 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_block_check_sibling()
327 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_block_check_siblings()
377 error = xchk_ag_init_existing(bs->sc, agno, &bs->sc->sa); in xchk_btree_check_block_owner()
378 if (!xchk_btree_xref_process_error(bs->sc, bs->cur, in xchk_btree_check_block_owner()
383 xchk_xref_is_used_space(bs->sc, agbno, 1); in xchk_btree_check_block_owner()
389 if (!bs->sc->sa.bno_cur && btnum == XFS_BTNUM_BNO) in xchk_btree_check_block_owner()
392 xchk_xref_is_owned_by(bs->sc, agbno, 1, bs->oinfo); in xchk_btree_check_block_owner()
393 if (!bs->sc->sa.rmap_cur && btnum == XFS_BTNUM_RMAP) in xchk_btree_check_block_owner()
398 xchk_ag_free(bs->sc, &bs->sc->sa); in xchk_btree_check_block_owner()
421 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_check_owner()
465 XFS_IFORK_Q(bs->sc->ip)) in xchk_btree_check_iroot_minrecs()
507 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_check_minrecs()
516 xchk_btree_set_corrupt(bs->sc, cur, level); in xchk_btree_check_minrecs()
538 if (!xchk_btree_process_error(bs->sc, bs->cur, level, &error) || in xchk_btree_get_block()
550 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_get_block()
554 xchk_buffer_recheck(bs->sc, *pbp); in xchk_btree_get_block()
603 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_block_keys()
614 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_block_keys()
624 struct xfs_scrub *sc, in xchk_btree() argument
636 .sc = sc, in xchk_btree()
656 xchk_btree_set_corrupt(sc, cur, 0); in xchk_btree()
696 if (xchk_should_terminate(sc, &error) || in xchk_btree()
697 (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_btree()