| /linux/fs/xfs/scrub/ |
| H A D | rtrmap.c | 262 return xchk_btree(sc, sc->sr.rmap_cur, xchk_rtrmapbt_rec, &oinfo, &cr); in xchk_rtrmapbt() 275 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_no_rt_owner() 278 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_rt_owner() 279 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_xref_has_no_rt_owner() 282 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_has_no_rt_owner() 295 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_rt_owner() 298 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_rt_owner() 299 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_xref_has_rt_owner() 302 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_has_rt_owner() 316 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_only_rt_owned_by() [all …]
|
| H A D | rmap.c | 336 bs->sc->sa.rmap_cur, 0); in xchk_rmapbt_mark_bitmap() 344 xchk_btree_xref_set_corrupt(bs->sc, bs->sc->sa.rmap_cur, 0); in xchk_rmapbt_mark_bitmap() 442 error = xagb_bitmap_set_btblocks(&cr->ag_owned, sc->sa.rmap_cur); in xchk_rmapbt_walk_ag_metadata() 497 if (!xchk_btree_xref_process_error(sc, sc->sa.rmap_cur, in xchk_rmapbt_walk_ag_metadata() 498 sc->sa.rmap_cur->bc_nlevels - 1, &error)) { in xchk_rmapbt_walk_ag_metadata() 520 struct xfs_btree_cur *cur = sc->sa.rmap_cur; in xchk_rmapbt_check_bitmaps() 572 error = xchk_btree(sc, sc->sa.rmap_cur, xchk_rmapbt_rec, in xchk_rmapbt() 601 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_only_owned_by() 604 error = xfs_rmap_count_owners(sc->sa.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_owned_by() 605 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_xref_is_only_owned_by() [all …]
|
| H A D | refcount.c | 301 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap() 311 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_rmap() 313 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcountbt_xref_rmap() 319 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap() 388 if (bno <= rrc->next_unshared_agbno || !sc->sa.rmap_cur || in xchk_refcountbt_xref_gaps() 397 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_gaps() 400 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_gaps() 402 xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur); in xchk_refcountbt_xref_gaps() 497 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap() 504 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_refcount_xref_rmap() [all …]
|
| H A D | rtrefcount.c | 316 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_rtrefcountbt_xref_rmap() 326 error = xfs_rmap_query_range(sc->sr.rmap_cur, &low, &high, in xchk_rtrefcountbt_xref_rmap() 328 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_rtrefcountbt_xref_rmap() 333 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_rtrefcountbt_xref_rmap() 439 if (bno <= rrc->next_unshared_rgbno || !sc->sr.rmap_cur || in xchk_rtrefcountbt_xref_gaps() 448 error = xfs_rmap_query_range(sc->sr.rmap_cur, &low, &high, in xchk_rtrefcountbt_xref_gaps() 451 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_rtrefcountbt_xref_gaps() 453 xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur); in xchk_rtrefcountbt_xref_gaps() 528 if (!sc->sa.rmap_cur) { in xchk_rtrefcount_count_agblocks() 533 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, btree_oinfo, in xchk_rtrefcount_count_agblocks() [all …]
|
| H A D | rmap_repair.c | 1036 struct xfs_btree_cur *rmap_cur, in xrep_rmap_try_reserve() argument 1120 error = xfs_btree_bload_compute_geometry(rmap_cur, in xrep_rmap_try_reserve() 1137 struct xfs_btree_cur *rmap_cur) in xrep_rmap_reserve_space() argument 1145 error = xfs_btree_bload_compute_geometry(rmap_cur, in xrep_rmap_reserve_space() 1163 error = xrep_rmap_try_reserve(rr, rmap_cur, &freesp_blocks, in xrep_rmap_reserve_space() 1339 struct xfs_btree_cur *rmap_cur; in xrep_rmap_build_new_tree() local 1363 rmap_cur = xfs_rmapbt_init_cursor(sc->mp, NULL, NULL, pag); in xrep_rmap_build_new_tree() 1364 xfs_btree_stage_afakeroot(rmap_cur, &rr->new_btree.afake); in xrep_rmap_build_new_tree() 1370 error = xrep_rmap_reserve_space(rr, rmap_cur); in xrep_rmap_build_new_tree() 1402 error = xfs_btree_bload(rmap_cur, &rr->new_btree.bload, rr); in xrep_rmap_build_new_tree() [all …]
|
| H A D | ialloc.c | 662 if (!sc->sa.ino_cur || !sc->sa.rmap_cur || in xchk_iallocbt_xref_rmap_btreeblks() 678 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_iallocbt_xref_rmap_btreeblks() 680 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_iallocbt_xref_rmap_btreeblks() 699 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_iallocbt_xref_rmap_inodes() 703 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_iallocbt_xref_rmap_inodes() 705 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_iallocbt_xref_rmap_inodes() 709 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_iallocbt_xref_rmap_inodes()
|
| H A D | refcount_repair.c | 233 struct xfs_btree_cur *cur = rr->sc->sa.rmap_cur; in xrep_refc_walk_rmaps() 389 error = xfs_btree_decrement(sc->sa.rmap_cur, 0, &have_gt); in xrep_refc_push_rmaps_at() 393 xfs_btree_mark_sick(sc->sa.rmap_cur); in xrep_refc_push_rmaps_at() 426 error = xfs_btree_goto_left_edge(sc->sa.rmap_cur); in xrep_refc_find_refcounts() 431 while (xfs_btree_has_more_records(sc->sa.rmap_cur)) { in xrep_refc_find_refcounts()
|
| H A D | scrub.h | 118 struct xfs_btree_cur *rmap_cur; member 131 struct xfs_btree_cur *rmap_cur; member
|
| H A D | agheader.c | 522 if (sc->sa.rmap_cur) { in xchk_agf_xref_btreeblks() 523 error = xfs_btree_count_blocks(sc->sa.rmap_cur, &blocks); in xchk_agf_xref_btreeblks() 524 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_agf_xref_btreeblks() 537 if ((xfs_has_rmapbt(mp) && !sc->sa.rmap_cur) || in xchk_agf_xref_btreeblks()
|
| H A D | cow_repair.c | 311 error = xfs_rmap_query_range(sc->sa.rmap_cur, &rm_low, &rm_high, in xrep_cow_find_bad() 393 error = xfs_rmap_query_range(sc->sr.rmap_cur, &rm_low, &rm_high, in xrep_cow_find_bad_rt()
|
| H A D | rtbitmap.c | 105 if (!sc->sr.rmap_cur) in xchk_rtbitmap_xref()
|
| H A D | agheader_repair.c | 459 struct xfs_btree_cur *rmap_cur; member 502 error = xfs_rmap_has_other_keys(ra->rmap_cur, agbno, 1, in xrep_agfl_check_extent() 577 ra.rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag); in xrep_agfl_collect_blocks() 579 xfs_btree_del_cursor(ra.rmap_cur, error); in xrep_agfl_collect_blocks()
|
| H A D | bmap.c | 152 struct xfs_btree_cur **curp = &info->sc->sa.rmap_cur; in xchk_bmap_get_rmap() 159 curp = &info->sc->sr.rmap_cur; in xchk_bmap_get_rmap()
|
| H A D | repair.c | 918 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, in xrep_ag_btcur_init() 1028 sr->rmap_cur = xfs_rtrmapbt_init_cursor(sc->tp, sr->rtg); in xrep_rtgroup_btcur_init()
|
| H A D | rtbitmap_repair.c | 343 error = xfs_rmap_query_all(sc->sr.rmap_cur, xrep_rtbitmap_walk_rtrmap, in xrep_rtbitmap_find_freespace()
|
| H A D | alloc_repair.c | 379 error = xfs_rmap_query_all(sc->sa.rmap_cur, xrep_abt_walk_rmap, ra); in xrep_abt_find_freespace()
|
| H A D | btree.c | 410 if (!bs->sc->sa.rmap_cur && is_rmapbt) in xchk_btree_check_block_owner()
|
| H A D | inode_repair.c | 817 error = xfs_rmap_query_all(sc->sr.rmap_cur, xrep_dinode_walk_rtrmap, in xrep_dinode_count_rtgroup_rmaps()
|