Home
last modified time | relevance | path

Searched refs:bno_cur (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/fs/xfs/scrub/
Dalloc.c71 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other()
163 cur = sc->sa.bno_cur; in xchk_allocbt()
186 if (!sc->sa.bno_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_used_space()
189 error = xfs_alloc_has_records(sc->sa.bno_cur, agbno, len, &outcome); in xchk_xref_is_used_space()
190 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_xref_is_used_space()
193 xchk_btree_xref_set_corrupt(sc, sc->sa.bno_cur, 0); in xchk_xref_is_used_space()
Dalloc_repair.c435 struct xfs_btree_cur *bno_cur, in xrep_abt_reserve_space() argument
457 error = xfs_btree_bload_compute_geometry(bno_cur, in xrep_abt_reserve_space()
707 struct xfs_btree_cur *bno_cur; in xrep_abt_build_new_trees() local
738 bno_cur = xfs_bnobt_init_cursor(sc->mp, NULL, NULL, pag); in xrep_abt_build_new_trees()
739 xfs_btree_stage_afakeroot(bno_cur, &ra->new_bnobt.afake); in xrep_abt_build_new_trees()
749 error = xrep_abt_reserve_space(ra, bno_cur, cnt_cur, &needs_resort); in xrep_abt_build_new_trees()
785 error = xfs_btree_bload(bno_cur, &ra->new_bnobt.bload, ra); in xrep_abt_build_new_trees()
793 xfs_allocbt_commit_staged_btree(bno_cur, sc->tp, sc->sa.agf_bp); in xrep_abt_build_new_trees()
794 xfs_btree_del_cursor(bno_cur, 0); in xrep_abt_build_new_trees()
813 xfs_btree_del_cursor(bno_cur, error); in xrep_abt_build_new_trees()
Drmap_repair.c197 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rm_startblock, in xrep_rmap_check_mapping()
930 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_find_rmaps()
936 xfs_btree_del_cursor(sc->sa.bno_cur, error); in xrep_rmap_find_rmaps()
937 sc->sa.bno_cur = NULL; in xrep_rmap_find_rmaps()
1015 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_try_reserve()
1017 error = xagb_bitmap_set_btblocks(freesp_blocks, sc->sa.bno_cur); in xrep_rmap_try_reserve()
1018 xfs_btree_del_cursor(sc->sa.bno_cur, error); in xrep_rmap_try_reserve()
1019 sc->sa.bno_cur = NULL; in xrep_rmap_try_reserve()
1470 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_remove_old_tree()
1472 error = xfs_alloc_query_all(sc->sa.bno_cur, xrep_rmap_find_freesp, in xrep_rmap_remove_old_tree()
[all …]
Dcommon.c575 if (sa->bno_cur) in xchk_ag_btcur_free()
576 xfs_btree_del_cursor(sa->bno_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free()
582 sa->bno_cur = NULL; in xchk_ag_btcur_free()
596 sa->bno_cur = xfs_bnobt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init()
598 xchk_ag_btree_del_cursor_if_sick(sc, &sa->bno_cur, in xchk_ag_btcur_init()
Dagheader.c387 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks()
390 error = xfs_alloc_query_all(sc->sa.bno_cur, in xchk_agf_xref_freeblks()
392 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_freeblks()
462 !sc->sa.bno_cur || !sc->sa.cnt_cur) in xchk_agf_xref_btreeblks()
466 error = xfs_btree_count_blocks(sc->sa.bno_cur, &blocks); in xchk_agf_xref_btreeblks()
467 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_btreeblks()
Dscrub.h112 struct xfs_btree_cur *bno_cur; member
Drmap.c422 cur = sc->sa.bno_cur; in xchk_rmapbt_walk_ag_metadata()
427 if (cur != sc->sa.bno_cur) in xchk_rmapbt_walk_ag_metadata()
Dfscounters.c271 error = xfs_btree_count_blocks(sc->sa.bno_cur, &blocks); in xchk_fscount_btreeblks()
Drefcount_repair.c148 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rc_startblock, in xrep_refc_check_ext()
Dialloc_repair.c387 error = xfs_alloc_has_records(sc->sa.bno_cur, agbno, len, &outcome); in xrep_ibt_check_inode_ext()
Dbmap_repair.c214 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rm_startblock, in xrep_bmap_check_fork_rmap()
Dbtree.c401 if (!bs->sc->sa.bno_cur && xfs_btree_is_bno(bs->cur->bc_ops)) in xchk_btree_check_block_owner()
Drepair.c841 sa->bno_cur = xfs_bnobt_init_cursor(mp, sc->tp, sa->agf_bp, in xrep_ag_btcur_init()
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_alloc.c570 struct xfs_btree_cur *bno_cur, /* cursor for by-block btree */ in xfs_alloc_fixup_trees() argument
616 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees()
622 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
627 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
630 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
636 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) { in xfs_alloc_fixup_trees()
640 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_levels[0].bp); in xfs_alloc_fixup_trees()
646 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
724 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_alloc_fixup_trees()
727 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
[all …]