Lines Matching refs:sa

302 	if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm))
312 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high,
314 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur))
319 trace_xchk_refcount_incorrect(sc->sa.pag, irec, refchk.seen);
320 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
389 if (bno <= rrc->next_unshared_agbno || !sc->sa.rmap_cur ||
398 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high,
401 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
403 xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur);
497 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm))
501 error = xfs_btree_count_blocks(sc->sa.refc_cur, &refcbt_blocks);
502 if (!xchk_btree_process_error(sc, sc->sa.refc_cur, 0, &error))
504 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur,
506 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur))
509 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
512 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur,
514 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur))
517 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0);
532 error = xchk_btree(sc, sc->sa.refc_cur, xchk_refcountbt_rec,
559 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm))
563 error = xfs_refcount_lookup_le(sc->sa.refc_cur, XFS_REFC_DOMAIN_COW,
565 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
568 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
572 error = xfs_refcount_get_rec(sc->sa.refc_cur, &rc, &has_refcount);
573 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
576 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
582 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
586 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
602 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm))
605 error = xfs_refcount_has_records(sc->sa.refc_cur,
607 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
610 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);
623 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm))
626 error = xfs_refcount_has_records(sc->sa.refc_cur, XFS_REFC_DOMAIN_COW,
628 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur))
631 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0);