Home
last modified time | relevance | path

Searched refs:rmap_cur (Results 1 – 22 of 22) sorted by relevance

/linux/fs/xfs/scrub/
H A Drtrmap.c257 return xchk_btree(sc, sc->sr.rmap_cur, xchk_rtrmapbt_rec, &oinfo, &cr); in xchk_rtrmapbt()
270 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_no_rt_owner()
273 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_rt_owner()
274 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_xref_has_no_rt_owner()
277 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_has_no_rt_owner()
290 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_rt_owner()
293 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_rt_owner()
294 if (!xchk_should_check_xref(sc, &error, &sc->sr.rmap_cur)) in xchk_xref_has_rt_owner()
297 xchk_btree_xref_set_corrupt(sc, sc->sr.rmap_cur, 0); in xchk_xref_has_rt_owner()
311 if (!sc->sr.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_only_rt_owned_by()
[all …]
H A Drtrefcount.c316 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()
519 if (!sc->sr.rmap_cur || !sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap()
526 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, btree_oinfo, in xchk_refcount_xref_rmap()
[all …]
H A Drefcount.c302 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap()
312 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_rmap()
314 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcountbt_xref_rmap()
320 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap()
389 if (bno <= rrc->next_unshared_agbno || !sc->sa.rmap_cur || in xchk_refcountbt_xref_gaps()
398 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_gaps()
401 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_gaps()
403 xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur); in xchk_refcountbt_xref_gaps()
498 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap()
505 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_refcount_xref_rmap()
[all …]
H A Drtrmap_repair.c423 error = xfs_rmap_query_all(sc->sa.rmap_cur, xrep_rtrmap_walk_rmap, rr); in xrep_rtrmap_scan_ag()
714 struct xfs_btree_cur *rmap_cur; in xrep_rtrmap_build_new_tree() local
731 rmap_cur = xfs_rtrmapbt_init_cursor(NULL, rtg); in xrep_rtrmap_build_new_tree()
732 xfs_btree_stage_ifakeroot(rmap_cur, &rr->new_btree.ifake); in xrep_rtrmap_build_new_tree()
735 error = xfs_btree_bload_compute_geometry(rmap_cur, in xrep_rtrmap_build_new_tree()
773 error = xfs_btree_bload(rmap_cur, &rr->new_btree.bload, rr); in xrep_rtrmap_build_new_tree()
782 xfs_rtrmapbt_commit_staged_btree(rmap_cur, sc->tp); in xrep_rtrmap_build_new_tree()
784 xfs_btree_del_cursor(rmap_cur, 0); in xrep_rtrmap_build_new_tree()
804 xfs_btree_del_cursor(rmap_cur, error); in xrep_rtrmap_build_new_tree()
H A Drmap_repair.c1039 struct xfs_btree_cur *rmap_cur, in xrep_rmap_try_reserve() argument
1122 error = xfs_btree_bload_compute_geometry(rmap_cur, in xrep_rmap_try_reserve()
1139 struct xfs_btree_cur *rmap_cur) in xrep_rmap_reserve_space() argument
1147 error = xfs_btree_bload_compute_geometry(rmap_cur, in xrep_rmap_reserve_space()
1165 error = xrep_rmap_try_reserve(rr, rmap_cur, &freesp_blocks, in xrep_rmap_reserve_space()
1341 struct xfs_btree_cur *rmap_cur; in xrep_rmap_build_new_tree() local
1365 rmap_cur = xfs_rmapbt_init_cursor(sc->mp, NULL, NULL, pag); in xrep_rmap_build_new_tree()
1366 xfs_btree_stage_afakeroot(rmap_cur, &rr->new_btree.afake); in xrep_rmap_build_new_tree()
1372 error = xrep_rmap_reserve_space(rr, rmap_cur); in xrep_rmap_build_new_tree()
1404 error = xfs_btree_bload(rmap_cur, &rr->new_btree.bload, rr); in xrep_rmap_build_new_tree()
[all …]
H A Drtrefcount_repair.c227 struct xfs_btree_cur *cur = rr->sc->sr.rmap_cur; in xrep_rtrefc_walk_rmaps()
409 error = xfs_btree_decrement(sc->sr.rmap_cur, 0, &have_gt); in xrep_rtrefc_push_rmaps_at()
413 xfs_btree_mark_sick(sc->sr.rmap_cur); in xrep_rtrefc_push_rmaps_at()
433 error = xfs_rmap_query_all(sc->sa.rmap_cur, xrep_rtrefc_walk_rmap, rr); in xrep_rtrefc_scan_ag()
474 error = xfs_btree_goto_left_edge(sc->sr.rmap_cur); in xrep_rtrefc_find_refcounts()
479 while (xfs_btree_has_more_records(sc->sr.rmap_cur)) { in xrep_rtrefc_find_refcounts()
H A Dialloc.c657 if (!sc->sa.ino_cur || !sc->sa.rmap_cur || in xchk_iallocbt_xref_rmap_btreeblks()
673 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_iallocbt_xref_rmap_btreeblks()
675 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_iallocbt_xref_rmap_btreeblks()
694 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_iallocbt_xref_rmap_inodes()
698 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_iallocbt_xref_rmap_inodes()
700 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_iallocbt_xref_rmap_inodes()
704 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_iallocbt_xref_rmap_inodes()
H A Drefcount_repair.c239 struct xfs_btree_cur *cur = rr->sc->sa.rmap_cur; in xrep_refc_walk_rmaps()
395 error = xfs_btree_decrement(sc->sa.rmap_cur, 0, &have_gt); in xrep_refc_push_rmaps_at()
399 xfs_btree_mark_sick(sc->sa.rmap_cur); in xrep_refc_push_rmaps_at()
432 error = xfs_btree_goto_left_edge(sc->sa.rmap_cur); in xrep_refc_find_refcounts()
437 while (xfs_btree_has_more_records(sc->sa.rmap_cur)) { in xrep_refc_find_refcounts()
H A Dcommon.c583 if (sa->rmap_cur) in xchk_ag_btcur_free()
584 xfs_btree_del_cursor(sa->rmap_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free()
595 sa->rmap_cur = NULL; in xchk_ag_btcur_free()
625 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, in xchk_ag_btcur_init()
627 xchk_ag_btree_del_cursor_if_sick(sc, &sa->rmap_cur, in xchk_ag_btcur_init()
799 sr->rmap_cur = xfs_rtrmapbt_init_cursor(sc->tp, sr->rtg); in xchk_rtgroup_lock()
816 if (sr->rmap_cur) in xchk_rtgroup_btcur_free()
817 xfs_btree_del_cursor(sr->rmap_cur, XFS_BTREE_ERROR); in xchk_rtgroup_btcur_free()
822 sr->rmap_cur = NULL; in xchk_rtgroup_btcur_free()
H A Dscrub.h118 struct xfs_btree_cur *rmap_cur; member
131 struct xfs_btree_cur *rmap_cur; member
H A Dagheader.c513 if (sc->sa.rmap_cur) { in xchk_agf_xref_btreeblks()
514 error = xfs_btree_count_blocks(sc->sa.rmap_cur, &blocks); in xchk_agf_xref_btreeblks()
515 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_agf_xref_btreeblks()
528 if ((xfs_has_rmapbt(mp) && !sc->sa.rmap_cur) || in xchk_agf_xref_btreeblks()
H A Dbmap.c152 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()
277 if (!info->sc->sa.rmap_cur || xchk_skip_xref(info->sc->sm)) in xchk_bmap_xref_rmap_cow()
H A Dcow_repair.c293 error = xfs_rmap_query_range(sc->sa.rmap_cur, &rm_low, &rm_high, in xrep_cow_find_bad()
377 error = xfs_rmap_query_range(sc->sr.rmap_cur, &rm_low, &rm_high, in xrep_cow_find_bad_rt()
H A Drtbitmap.c105 if (!sc->sr.rmap_cur) in xchk_rtbitmap_xref()
H A Dagheader_repair.c459 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 Dbmap_repair.c366 error = xfs_rmap_query_all(sc->sa.rmap_cur, xrep_bmap_walk_rmap, rb); in xrep_bmap_scan_ag()
466 error = xfs_rmap_query_all(sc->sr.rmap_cur, xrep_bmap_walk_rtrmap, rb); in xrep_bmap_scan_rtgroup()
H A Drepair.c903 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, in xrep_ag_btcur_init()
1013 sr->rmap_cur = xfs_rtrmapbt_init_cursor(sc->tp, sr->rtg); in xrep_rtgroup_btcur_init()
H A Drtbitmap_repair.c340 error = xfs_rmap_query_all(sc->sr.rmap_cur, xrep_rtbitmap_walk_rtrmap, in xrep_rtbitmap_find_freespace()
H A Dialloc_repair.c480 error = xfs_rmap_query_all(sc->sa.rmap_cur, xrep_ibt_walk_rmap, ri); in xrep_ibt_find_inodes()
H A Dalloc_repair.c379 error = xfs_rmap_query_all(sc->sa.rmap_cur, xrep_abt_walk_rmap, ra); in xrep_abt_find_freespace()
H A Dbtree.c405 if (!bs->sc->sa.rmap_cur && xfs_btree_is_rmap(bs->cur->bc_ops)) in xchk_btree_check_block_owner()
H A Dinode_repair.c817 error = xfs_rmap_query_all(sc->sr.rmap_cur, xrep_dinode_walk_rtrmap, in xrep_dinode_count_rtgroup_rmaps()