Searched refs:cnt_cur (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_alloc.c | 479 struct xfs_btree_cur *cnt_cur) in xfs_alloc_cursor_at_lastrec() argument 485 block = xfs_btree_get_block(cnt_cur, 0, &bp); in xfs_alloc_cursor_at_lastrec() 487 xfs_btree_get_sibling(cnt_cur, block, &ptr, XFS_BB_RIGHTSIB); in xfs_alloc_cursor_at_lastrec() 488 return xfs_btree_ptr_is_null(cnt_cur, &ptr); in xfs_alloc_cursor_at_lastrec() 498 struct xfs_btree_cur *cnt_cur, in xfs_cntbt_longest() argument 506 memset(&cnt_cur->bc_rec, 0xFF, sizeof(cnt_cur->bc_rec)); in xfs_cntbt_longest() 507 error = xfs_btree_lookup(cnt_cur, XFS_LOOKUP_LE, &stat); in xfs_cntbt_longest() 516 error = xfs_btree_get_rec(cnt_cur, &rec, &stat); in xfs_cntbt_longest() 519 if (XFS_IS_CORRUPT(cnt_cur->bc_mp, !stat)) { in xfs_cntbt_longest() 520 xfs_btree_mark_sick(cnt_cur); in xfs_cntbt_longest() [all …]
|
/linux-6.12.1/fs/xfs/scrub/ |
D | alloc_repair.c | 436 struct xfs_btree_cur *cnt_cur, in xrep_abt_reserve_space() argument 452 error = xfs_btree_bload_compute_geometry(cnt_cur, in xrep_abt_reserve_space() 708 struct xfs_btree_cur *cnt_cur; in xrep_abt_build_new_trees() local 741 cnt_cur = xfs_cntbt_init_cursor(sc->mp, NULL, NULL, pag); in xrep_abt_build_new_trees() 742 xfs_btree_stage_afakeroot(cnt_cur, &ra->new_cntbt.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() 775 error = xfs_btree_bload(cnt_cur, &ra->new_cntbt.bload, ra); in xrep_abt_build_new_trees() 795 xfs_allocbt_commit_staged_btree(cnt_cur, sc->tp, sc->sa.agf_bp); in xrep_abt_build_new_trees() 796 xfs_btree_del_cursor(cnt_cur, 0); in xrep_abt_build_new_trees() 812 xfs_btree_del_cursor(cnt_cur, error); in xrep_abt_build_new_trees()
|
D | alloc.c | 69 pcur = &sc->sa.cnt_cur; in xchk_allocbt_xref_other() 166 cur = sc->sa.cnt_cur; in xchk_allocbt()
|
D | agheader.c | 409 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt() 413 error = xfs_alloc_lookup_le(sc->sa.cnt_cur, 0, -1U, &have); in xchk_agf_xref_cntbt() 414 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_cntbt() 423 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt() 424 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_cntbt() 462 !sc->sa.bno_cur || !sc->sa.cnt_cur) in xchk_agf_xref_btreeblks() 471 error = xfs_btree_count_blocks(sc->sa.cnt_cur, &blocks); in xchk_agf_xref_btreeblks() 472 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_btreeblks()
|
D | common.c | 573 if (sa->cnt_cur) in xchk_ag_btcur_free() 574 xfs_btree_del_cursor(sa->cnt_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free() 583 sa->cnt_cur = NULL; in xchk_ag_btcur_free() 602 sa->cnt_cur = xfs_cntbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 604 xchk_ag_btree_del_cursor_if_sick(sc, &sa->cnt_cur, in xchk_ag_btcur_init()
|
D | scrub.h | 113 struct xfs_btree_cur *cnt_cur; member
|
D | rmap_repair.c | 1024 sc->sa.cnt_cur = xfs_cntbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_try_reserve() 1026 error = xagb_bitmap_set_btblocks(freesp_blocks, sc->sa.cnt_cur); in xrep_rmap_try_reserve() 1027 xfs_btree_del_cursor(sc->sa.cnt_cur, error); in xrep_rmap_try_reserve() 1028 sc->sa.cnt_cur = NULL; in xrep_rmap_try_reserve()
|
D | rmap.c | 432 cur = sc->sa.cnt_cur; in xchk_rmapbt_walk_ag_metadata() 437 if (cur != sc->sa.cnt_cur) in xchk_rmapbt_walk_ag_metadata()
|
D | fscounters.c | 276 error = xfs_btree_count_blocks(sc->sa.cnt_cur, &blocks); in xchk_fscount_btreeblks()
|
D | repair.c | 843 sa->cnt_cur = xfs_cntbt_init_cursor(mp, sc->tp, sa->agf_bp, in xrep_ag_btcur_init()
|