Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/fs/xfs/scrub/
H A Drmap.c168 return xchk_btree(sc, sc->sa.rmap_cur, xchk_rmapbt_rec, in xchk_rmapbt()
184 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_check_owner()
187 error = xfs_rmap_record_exists(sc->sa.rmap_cur, bno, len, oinfo, in xchk_xref_check_owner()
189 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_xref_check_owner()
192 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_xref_check_owner()
227 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_no_owner()
230 error = xfs_rmap_has_record(sc->sa.rmap_cur, bno, len, &has_rmap); in xchk_xref_has_no_owner()
231 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_xref_has_no_owner()
234 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_xref_has_no_owner()
H A Drefcount.c287 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap()
297 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_rmap()
299 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcountbt_xref_rmap()
304 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap()
379 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap()
386 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_refcount_xref_rmap()
388 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcount_xref_rmap()
391 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcount_xref_rmap()
394 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_refcount_xref_rmap()
396 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcount_xref_rmap()
[all …]
H A Dialloc.c520 if (!sc->sa.ino_cur || !sc->sa.rmap_cur || in xchk_iallocbt_xref_rmap_btreeblks()
536 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_iallocbt_xref_rmap_btreeblks()
538 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_iallocbt_xref_rmap_btreeblks()
558 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_iallocbt_xref_rmap_inodes()
562 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, in xchk_iallocbt_xref_rmap_inodes()
564 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_iallocbt_xref_rmap_inodes()
568 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_iallocbt_xref_rmap_inodes()
H A Dbmap.c134 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap()
137 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap()
145 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap()
148 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap()
153 error = xfs_rmap_get_rec(info->sc->sa.rmap_cur, rmap, &has_rmap); in xchk_bmap_get_rmap()
155 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap()
176 if (!info->sc->sa.rmap_cur || xchk_skip_xref(info->sc->sm)) in xchk_bmap_xref_rmap()
H A Dcommon.c435 if (sa->rmap_cur) in xchk_ag_btcur_free()
436 xfs_btree_del_cursor(sa->rmap_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free()
447 sa->rmap_cur = NULL; in xchk_ag_btcur_free()
503 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init()
505 if (!sa->rmap_cur) in xchk_ag_btcur_init()
H A Dscrub.h52 struct xfs_btree_cur *rmap_cur; member
H A Dagheader.c420 if (sc->sa.rmap_cur) { in xchk_agf_xref_btreeblks()
421 error = xfs_btree_count_blocks(sc->sa.rmap_cur, &blocks); in xchk_agf_xref_btreeblks()
422 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_agf_xref_btreeblks()
435 if ((xfs_sb_version_hasrmapbt(&mp->m_sb) && !sc->sa.rmap_cur) || in xchk_agf_xref_btreeblks()
H A Dbtree.c392 if (!bs->sc->sa.rmap_cur && btnum == XFS_BTNUM_RMAP) in xchk_btree_check_block_owner()