| /linux/fs/xfs/scrub/ |
| H A D | alloc.c | 71 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other() 164 cur = sc->sa.bno_cur; in xchk_allocbt() 187 if (!sc->sa.bno_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_used_space() 190 error = xfs_alloc_has_records(sc->sa.bno_cur, agbno, len, &outcome); in xchk_xref_is_used_space() 191 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_xref_is_used_space() 194 xchk_btree_xref_set_corrupt(sc, sc->sa.bno_cur, 0); in xchk_xref_is_used_space()
|
| H A D | alloc_repair.c | 434 struct xfs_btree_cur *bno_cur, in xrep_abt_reserve_space() argument 456 error = xfs_btree_bload_compute_geometry(bno_cur, in xrep_abt_reserve_space() 712 struct xfs_btree_cur *bno_cur; in xrep_abt_build_new_trees() local 743 bno_cur = xfs_bnobt_init_cursor(sc->mp, NULL, NULL, pag); in xrep_abt_build_new_trees() 744 xfs_btree_stage_afakeroot(bno_cur, &ra->new_bnobt.afake); in xrep_abt_build_new_trees() 754 error = xrep_abt_reserve_space(ra, bno_cur, cnt_cur, &needs_resort); in xrep_abt_build_new_trees() 790 error = xfs_btree_bload(bno_cur, &ra->new_bnobt.bload, ra); in xrep_abt_build_new_trees() 798 xfs_allocbt_commit_staged_btree(bno_cur, sc->tp, sc->sa.agf_bp); in xrep_abt_build_new_trees() 799 xfs_btree_del_cursor(bno_cur, 0); in xrep_abt_build_new_trees() 820 xfs_btree_del_cursor(bno_cur, error); in xrep_abt_build_new_trees()
|
| H A D | rmap_repair.c | 197 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rm_startblock, in xrep_rmap_check_mapping() 994 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_find_rmaps() 1000 xfs_btree_del_cursor(sc->sa.bno_cur, error); in xrep_rmap_find_rmaps() 1001 sc->sa.bno_cur = NULL; in xrep_rmap_find_rmaps() 1079 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_try_reserve() 1081 error = xagb_bitmap_set_btblocks(freesp_blocks, sc->sa.bno_cur); in xrep_rmap_try_reserve() 1082 xfs_btree_del_cursor(sc->sa.bno_cur, error); in xrep_rmap_try_reserve() 1083 sc->sa.bno_cur = NULL; in xrep_rmap_try_reserve() 1534 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_remove_old_tree() 1536 error = xfs_alloc_query_all(sc->sa.bno_cur, xrep_rmap_find_freesp, in xrep_rmap_remove_old_tree() [all …]
|
| H A D | agheader.c | 463 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks() 466 error = xfs_alloc_query_all(sc->sa.bno_cur, in xchk_agf_xref_freeblks() 468 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_freeblks() 538 !sc->sa.bno_cur || !sc->sa.cnt_cur) in xchk_agf_xref_btreeblks() 542 error = xfs_btree_count_blocks(sc->sa.bno_cur, &blocks); in xchk_agf_xref_btreeblks() 543 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_btreeblks()
|
| H A D | rmap.c | 422 cur = sc->sa.bno_cur; in xchk_rmapbt_walk_ag_metadata() 427 if (cur != sc->sa.bno_cur) in xchk_rmapbt_walk_ag_metadata()
|
| H A D | scrub.h | 114 struct xfs_btree_cur *bno_cur; member
|
| H A D | fscounters.c | 272 error = xfs_btree_count_blocks(sc->sa.bno_cur, &blocks); in xchk_fscount_btreeblks()
|
| H A D | repair.c | 899 sa->bno_cur = xfs_bnobt_init_cursor(mp, sc->tp, sa->agf_bp, in xrep_ag_btcur_init() 1343 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rm_startblock, in xrep_check_ino_btree_mapping()
|
| H A D | refcount_repair.c | 142 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rc_startblock, in xrep_refc_check_ext()
|
| H A D | btree.c | 406 if (!bs->sc->sa.bno_cur && is_bnobt) in xchk_btree_check_block_owner()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_alloc.c | 569 struct xfs_btree_cur *bno_cur, /* cursor for by-block btree */ in xfs_alloc_fixup_trees() argument 615 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees() 621 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees() 626 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees() 629 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees() 635 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) { in xfs_alloc_fixup_trees() 639 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_levels[0].bp); in xfs_alloc_fixup_trees() 645 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees() 723 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_alloc_fixup_trees() 726 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees() [all …]
|