Lines Matching refs:sa

290 	if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm))
300 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high,
302 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur))
307 trace_xchk_refcount_incorrect(sc->sa.pag, irec, refchk.seen);
308 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
377 if (bno <= rrc->next_unshared_agbno || !sc->sa.rmap_cur ||
386 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high,
389 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
391 xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur);
485 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm))
489 error = xfs_btree_count_blocks(sc->sa.refc_cur, &refcbt_blocks);
490 if (!xchk_btree_process_error(sc, sc->sa.refc_cur, 0, &error))
492 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur,
494 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur))
497 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
500 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur,
502 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur))
505 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
520 error = xchk_btree(sc, sc->sa.refc_cur, xchk_refcountbt_rec,
547 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm))
551 error = xfs_refcount_lookup_le(sc->sa.refc_cur, XFS_REFC_DOMAIN_COW,
553 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
556 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
560 error = xfs_refcount_get_rec(sc->sa.refc_cur, &rc, &has_refcount);
561 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
564 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
570 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
574 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
590 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm))
593 error = xfs_refcount_has_records(sc->sa.refc_cur,
595 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
598 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
611 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm))
614 error = xfs_refcount_has_records(sc->sa.refc_cur, XFS_REFC_DOMAIN_COW,
616 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
619 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);