Home
last modified time | relevance | path

Searched refs:refc_cur (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/fs/xfs/scrub/
Drefcount.c501 error = xfs_btree_count_blocks(sc->sa.refc_cur, &refcbt_blocks); in xchk_refcount_xref_rmap()
502 if (!xchk_btree_process_error(sc, sc->sa.refc_cur, 0, &error)) in xchk_refcount_xref_rmap()
532 error = xchk_btree(sc, sc->sa.refc_cur, xchk_refcountbt_rec, in xchk_refcountbt()
559 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_cow_staging()
563 error = xfs_refcount_lookup_le(sc->sa.refc_cur, XFS_REFC_DOMAIN_COW, in xchk_xref_is_cow_staging()
565 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_xref_is_cow_staging()
568 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_xref_is_cow_staging()
572 error = xfs_refcount_get_rec(sc->sa.refc_cur, &rc, &has_refcount); in xchk_xref_is_cow_staging()
573 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_xref_is_cow_staging()
576 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_xref_is_cow_staging()
[all …]
Drefcount_repair.c591 struct xfs_btree_cur *refc_cur; in xrep_refc_build_new_tree() local
613 refc_cur = xfs_refcountbt_init_cursor(sc->mp, NULL, NULL, pag); in xrep_refc_build_new_tree()
614 xfs_btree_stage_afakeroot(refc_cur, &rr->new_btree.afake); in xrep_refc_build_new_tree()
615 error = xfs_btree_bload_compute_geometry(refc_cur, in xrep_refc_build_new_tree()
641 error = xfs_btree_bload(refc_cur, &rr->new_btree.bload, rr); in xrep_refc_build_new_tree()
649 xfs_refcountbt_commit_staged_btree(refc_cur, sc->tp, sc->sa.agf_bp); in xrep_refc_build_new_tree()
650 xfs_btree_del_cursor(refc_cur, 0); in xrep_refc_build_new_tree()
667 xfs_btree_del_cursor(refc_cur, error); in xrep_refc_build_new_tree()
Drmap.c92 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rmapbt_xref_refc()
101 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc()
103 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_rmapbt_xref_refc()
106 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_rmapbt_xref_refc()
480 cur = sc->sa.refc_cur; in xchk_rmapbt_walk_ag_metadata()
485 if (cur != sc->sa.refc_cur) in xchk_rmapbt_walk_ag_metadata()
Dcommon.c565 if (sa->refc_cur) in xchk_ag_btcur_free()
566 xfs_btree_del_cursor(sa->refc_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free()
578 sa->refc_cur = NULL; in xchk_ag_btcur_free()
617 sa->refc_cur = xfs_refcountbt_init_cursor(mp, sc->tp, in xchk_ag_btcur_init()
619 xchk_ag_btree_del_cursor_if_sick(sc, &sa->refc_cur, in xchk_ag_btcur_init()
Dalloc_repair.c169 if (sc->sa.refc_cur) { in xrep_abt_check_free_ext()
170 error = xfs_refcount_has_records(sc->sa.refc_cur, in xrep_abt_check_free_ext()
178 error = xfs_refcount_has_records(sc->sa.refc_cur, in xrep_abt_check_free_ext()
Dcow_repair.c261 error = xfs_refcount_query_range(sc->sa.refc_cur, &rc_low, &rc_high, in xrep_cow_find_bad()
271 error = xfs_refcount_query_range(sc->sa.refc_cur, &rc_low, &rc_high, in xrep_cow_find_bad()
Dscrub.h117 struct xfs_btree_cur *refc_cur; member
Dagheader.c489 if (!sc->sa.refc_cur) in xchk_agf_xref_refcblks()
492 error = xfs_btree_count_blocks(sc->sa.refc_cur, &blocks); in xchk_agf_xref_refcblks()
493 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_agf_xref_refcblks()
Drmap_repair.c761 error = xagb_bitmap_set_btblocks(&refcountbt_blocks, sc->sa.refc_cur); in xrep_rmap_find_refcount_rmaps()
766 error = xfs_refcount_query_range(sc->sa.refc_cur, &low, &high, in xrep_rmap_find_refcount_rmaps()
Dbmap_repair.c108 error = xfs_refcount_find_shared(sc->sa.refc_cur, agbno, blockcount, in xrep_bmap_discover_shared()
Drepair.c866 sa->refc_cur = xfs_refcountbt_init_cursor(mp, sc->tp, in xrep_ag_btcur_init()