Commit fa9c3c19 authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner

xfs: convert rmap btree cursor to using a perag

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent be9fb17d
...@@ -916,7 +916,7 @@ xfs_ag_extend_space( ...@@ -916,7 +916,7 @@ xfs_ag_extend_space(
* XFS_RMAP_OINFO_SKIP_UPDATE is used here to tell the rmap btree that * XFS_RMAP_OINFO_SKIP_UPDATE is used here to tell the rmap btree that
* this doesn't actually exist in the rmap btree. * this doesn't actually exist in the rmap btree.
*/ */
error = xfs_rmap_free(tp, bp, id->agno, error = xfs_rmap_free(tp, bp, bp->b_pag,
be32_to_cpu(agf->agf_length) - len, be32_to_cpu(agf->agf_length) - len,
len, &XFS_RMAP_OINFO_SKIP_UPDATE); len, &XFS_RMAP_OINFO_SKIP_UPDATE);
if (error) if (error)
......
...@@ -1092,7 +1092,7 @@ xfs_alloc_ag_vextent_small( ...@@ -1092,7 +1092,7 @@ xfs_alloc_ag_vextent_small(
* If we're feeding an AGFL block to something that doesn't live in the * If we're feeding an AGFL block to something that doesn't live in the
* free space, we need to clear out the OWN_AG rmap. * free space, we need to clear out the OWN_AG rmap.
*/ */
error = xfs_rmap_free(args->tp, args->agbp, args->agno, fbno, 1, error = xfs_rmap_free(args->tp, args->agbp, args->pag, fbno, 1,
&XFS_RMAP_OINFO_AG); &XFS_RMAP_OINFO_AG);
if (error) if (error)
goto error; goto error;
...@@ -1169,7 +1169,7 @@ xfs_alloc_ag_vextent( ...@@ -1169,7 +1169,7 @@ xfs_alloc_ag_vextent(
/* if not file data, insert new block into the reverse map btree */ /* if not file data, insert new block into the reverse map btree */
if (!xfs_rmap_should_skip_owner_update(&args->oinfo)) { if (!xfs_rmap_should_skip_owner_update(&args->oinfo)) {
error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, error = xfs_rmap_alloc(args->tp, args->agbp, args->pag,
args->agbno, args->len, &args->oinfo); args->agbno, args->len, &args->oinfo);
if (error) if (error)
return error; return error;
...@@ -1899,12 +1899,13 @@ xfs_free_ag_extent( ...@@ -1899,12 +1899,13 @@ xfs_free_ag_extent(
int haveright; /* have a right neighbor */ int haveright; /* have a right neighbor */
int i; int i;
int error; int error;
struct xfs_perag *pag = agbp->b_pag;
bno_cur = cnt_cur = NULL; bno_cur = cnt_cur = NULL;
mp = tp->t_mountp; mp = tp->t_mountp;
if (!xfs_rmap_should_skip_owner_update(oinfo)) { if (!xfs_rmap_should_skip_owner_update(oinfo)) {
error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo); error = xfs_rmap_free(tp, agbp, pag, bno, len, oinfo);
if (error) if (error)
goto error0; goto error0;
} }
......
...@@ -696,7 +696,7 @@ int ...@@ -696,7 +696,7 @@ int
xfs_rmap_free( xfs_rmap_free(
struct xfs_trans *tp, struct xfs_trans *tp,
struct xfs_buf *agbp, struct xfs_buf *agbp,
xfs_agnumber_t agno, struct xfs_perag *pag,
xfs_agblock_t bno, xfs_agblock_t bno,
xfs_extlen_t len, xfs_extlen_t len,
const struct xfs_owner_info *oinfo) const struct xfs_owner_info *oinfo)
...@@ -708,7 +708,7 @@ xfs_rmap_free( ...@@ -708,7 +708,7 @@ xfs_rmap_free(
if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
return 0; return 0;
cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno, NULL); cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag);
error = xfs_rmap_unmap(cur, bno, len, false, oinfo); error = xfs_rmap_unmap(cur, bno, len, false, oinfo);
...@@ -950,7 +950,7 @@ int ...@@ -950,7 +950,7 @@ int
xfs_rmap_alloc( xfs_rmap_alloc(
struct xfs_trans *tp, struct xfs_trans *tp,
struct xfs_buf *agbp, struct xfs_buf *agbp,
xfs_agnumber_t agno, struct xfs_perag *pag,
xfs_agblock_t bno, xfs_agblock_t bno,
xfs_extlen_t len, xfs_extlen_t len,
const struct xfs_owner_info *oinfo) const struct xfs_owner_info *oinfo)
...@@ -962,7 +962,7 @@ xfs_rmap_alloc( ...@@ -962,7 +962,7 @@ xfs_rmap_alloc(
if (!xfs_sb_version_hasrmapbt(&mp->m_sb)) if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
return 0; return 0;
cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno, NULL); cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag);
error = xfs_rmap_map(cur, bno, len, false, oinfo); error = xfs_rmap_map(cur, bno, len, false, oinfo);
xfs_btree_del_cursor(cur, error); xfs_btree_del_cursor(cur, error);
...@@ -2408,7 +2408,7 @@ xfs_rmap_finish_one( ...@@ -2408,7 +2408,7 @@ xfs_rmap_finish_one(
goto out_drop; goto out_drop;
} }
rcur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag->pag_agno, pag); rcur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag);
} }
*pcur = rcur; *pcur = rcur;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
#ifndef __XFS_RMAP_H__ #ifndef __XFS_RMAP_H__
#define __XFS_RMAP_H__ #define __XFS_RMAP_H__
struct xfs_perag;
static inline void static inline void
xfs_rmap_ino_bmbt_owner( xfs_rmap_ino_bmbt_owner(
struct xfs_owner_info *oi, struct xfs_owner_info *oi,
...@@ -113,10 +115,10 @@ xfs_owner_info_pack( ...@@ -113,10 +115,10 @@ xfs_owner_info_pack(
} }
int xfs_rmap_alloc(struct xfs_trans *tp, struct xfs_buf *agbp, int xfs_rmap_alloc(struct xfs_trans *tp, struct xfs_buf *agbp,
xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len,
const struct xfs_owner_info *oinfo); const struct xfs_owner_info *oinfo);
int xfs_rmap_free(struct xfs_trans *tp, struct xfs_buf *agbp, int xfs_rmap_free(struct xfs_trans *tp, struct xfs_buf *agbp,
xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len,
const struct xfs_owner_info *oinfo); const struct xfs_owner_info *oinfo);
int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno, int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
......
...@@ -52,7 +52,7 @@ xfs_rmapbt_dup_cursor( ...@@ -52,7 +52,7 @@ xfs_rmapbt_dup_cursor(
struct xfs_btree_cur *cur) struct xfs_btree_cur *cur)
{ {
return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp,
cur->bc_ag.agbp, cur->bc_ag.agno, cur->bc_ag.pag); cur->bc_ag.agbp, cur->bc_ag.pag);
} }
STATIC void STATIC void
...@@ -64,13 +64,12 @@ xfs_rmapbt_set_root( ...@@ -64,13 +64,12 @@ xfs_rmapbt_set_root(
struct xfs_buf *agbp = cur->bc_ag.agbp; struct xfs_buf *agbp = cur->bc_ag.agbp;
struct xfs_agf *agf = agbp->b_addr; struct xfs_agf *agf = agbp->b_addr;
int btnum = cur->bc_btnum; int btnum = cur->bc_btnum;
struct xfs_perag *pag = agbp->b_pag;
ASSERT(ptr->s != 0); ASSERT(ptr->s != 0);
agf->agf_roots[btnum] = ptr->s; agf->agf_roots[btnum] = ptr->s;
be32_add_cpu(&agf->agf_levels[btnum], inc); be32_add_cpu(&agf->agf_levels[btnum], inc);
pag->pagf_levels[btnum] += inc; cur->bc_ag.pag->pagf_levels[btnum] += inc;
xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS);
} }
...@@ -84,6 +83,7 @@ xfs_rmapbt_alloc_block( ...@@ -84,6 +83,7 @@ xfs_rmapbt_alloc_block(
{ {
struct xfs_buf *agbp = cur->bc_ag.agbp; struct xfs_buf *agbp = cur->bc_ag.agbp;
struct xfs_agf *agf = agbp->b_addr; struct xfs_agf *agf = agbp->b_addr;
struct xfs_perag *pag = cur->bc_ag.pag;
int error; int error;
xfs_agblock_t bno; xfs_agblock_t bno;
...@@ -93,20 +93,19 @@ xfs_rmapbt_alloc_block( ...@@ -93,20 +93,19 @@ xfs_rmapbt_alloc_block(
if (error) if (error)
return error; return error;
trace_xfs_rmapbt_alloc_block(cur->bc_mp, cur->bc_ag.agno, trace_xfs_rmapbt_alloc_block(cur->bc_mp, pag->pag_agno, bno, 1);
bno, 1);
if (bno == NULLAGBLOCK) { if (bno == NULLAGBLOCK) {
*stat = 0; *stat = 0;
return 0; return 0;
} }
xfs_extent_busy_reuse(cur->bc_mp, agbp->b_pag, bno, 1, false); xfs_extent_busy_reuse(cur->bc_mp, pag, bno, 1, false);
new->s = cpu_to_be32(bno); new->s = cpu_to_be32(bno);
be32_add_cpu(&agf->agf_rmap_blocks, 1); be32_add_cpu(&agf->agf_rmap_blocks, 1);
xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS);
xfs_ag_resv_rmapbt_alloc(cur->bc_mp, cur->bc_ag.agno); xfs_ag_resv_rmapbt_alloc(cur->bc_mp, pag->pag_agno);
*stat = 1; *stat = 1;
return 0; return 0;
...@@ -119,12 +118,12 @@ xfs_rmapbt_free_block( ...@@ -119,12 +118,12 @@ xfs_rmapbt_free_block(
{ {
struct xfs_buf *agbp = cur->bc_ag.agbp; struct xfs_buf *agbp = cur->bc_ag.agbp;
struct xfs_agf *agf = agbp->b_addr; struct xfs_agf *agf = agbp->b_addr;
struct xfs_perag *pag; struct xfs_perag *pag = cur->bc_ag.pag;
xfs_agblock_t bno; xfs_agblock_t bno;
int error; int error;
bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp));
trace_xfs_rmapbt_free_block(cur->bc_mp, cur->bc_ag.agno, trace_xfs_rmapbt_free_block(cur->bc_mp, pag->pag_agno,
bno, 1); bno, 1);
be32_add_cpu(&agf->agf_rmap_blocks, -1); be32_add_cpu(&agf->agf_rmap_blocks, -1);
xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS);
...@@ -132,7 +131,6 @@ xfs_rmapbt_free_block( ...@@ -132,7 +131,6 @@ xfs_rmapbt_free_block(
if (error) if (error)
return error; return error;
pag = cur->bc_ag.agbp->b_pag;
xfs_extent_busy_insert(cur->bc_tp, pag, bno, 1, xfs_extent_busy_insert(cur->bc_tp, pag, bno, 1,
XFS_EXTENT_BUSY_SKIP_DISCARD); XFS_EXTENT_BUSY_SKIP_DISCARD);
...@@ -214,7 +212,7 @@ xfs_rmapbt_init_ptr_from_cur( ...@@ -214,7 +212,7 @@ xfs_rmapbt_init_ptr_from_cur(
{ {
struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; struct xfs_agf *agf = cur->bc_ag.agbp->b_addr;
ASSERT(cur->bc_ag.agno == be32_to_cpu(agf->agf_seqno)); ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno));
ptr->s = agf->agf_roots[cur->bc_btnum]; ptr->s = agf->agf_roots[cur->bc_btnum];
} }
...@@ -449,7 +447,6 @@ static struct xfs_btree_cur * ...@@ -449,7 +447,6 @@ static struct xfs_btree_cur *
xfs_rmapbt_init_common( xfs_rmapbt_init_common(
struct xfs_mount *mp, struct xfs_mount *mp,
struct xfs_trans *tp, struct xfs_trans *tp,
xfs_agnumber_t agno,
struct xfs_perag *pag) struct xfs_perag *pag)
{ {
struct xfs_btree_cur *cur; struct xfs_btree_cur *cur;
...@@ -462,13 +459,12 @@ xfs_rmapbt_init_common( ...@@ -462,13 +459,12 @@ xfs_rmapbt_init_common(
cur->bc_flags = XFS_BTREE_CRC_BLOCKS | XFS_BTREE_OVERLAPPING; cur->bc_flags = XFS_BTREE_CRC_BLOCKS | XFS_BTREE_OVERLAPPING;
cur->bc_blocklog = mp->m_sb.sb_blocklog; cur->bc_blocklog = mp->m_sb.sb_blocklog;
cur->bc_statoff = XFS_STATS_CALC_INDEX(xs_rmap_2); cur->bc_statoff = XFS_STATS_CALC_INDEX(xs_rmap_2);
cur->bc_ag.agno = agno;
cur->bc_ops = &xfs_rmapbt_ops; cur->bc_ops = &xfs_rmapbt_ops;
if (pag) {
/* take a reference for the cursor */ /* take a reference for the cursor */
atomic_inc(&pag->pag_ref); atomic_inc(&pag->pag_ref);
}
cur->bc_ag.pag = pag; cur->bc_ag.pag = pag;
cur->bc_ag.agno = pag->pag_agno;
return cur; return cur;
} }
...@@ -479,13 +475,12 @@ xfs_rmapbt_init_cursor( ...@@ -479,13 +475,12 @@ xfs_rmapbt_init_cursor(
struct xfs_mount *mp, struct xfs_mount *mp,
struct xfs_trans *tp, struct xfs_trans *tp,
struct xfs_buf *agbp, struct xfs_buf *agbp,
xfs_agnumber_t agno,
struct xfs_perag *pag) struct xfs_perag *pag)
{ {
struct xfs_agf *agf = agbp->b_addr; struct xfs_agf *agf = agbp->b_addr;
struct xfs_btree_cur *cur; struct xfs_btree_cur *cur;
cur = xfs_rmapbt_init_common(mp, tp, agno, pag); cur = xfs_rmapbt_init_common(mp, tp, pag);
cur->bc_nlevels = be32_to_cpu(agf->agf_levels[XFS_BTNUM_RMAP]); cur->bc_nlevels = be32_to_cpu(agf->agf_levels[XFS_BTNUM_RMAP]);
cur->bc_ag.agbp = agbp; cur->bc_ag.agbp = agbp;
return cur; return cur;
...@@ -496,11 +491,11 @@ struct xfs_btree_cur * ...@@ -496,11 +491,11 @@ struct xfs_btree_cur *
xfs_rmapbt_stage_cursor( xfs_rmapbt_stage_cursor(
struct xfs_mount *mp, struct xfs_mount *mp,
struct xbtree_afakeroot *afake, struct xbtree_afakeroot *afake,
xfs_agnumber_t agno) struct xfs_perag *pag)
{ {
struct xfs_btree_cur *cur; struct xfs_btree_cur *cur;
cur = xfs_rmapbt_init_common(mp, NULL, agno, NULL); cur = xfs_rmapbt_init_common(mp, NULL, pag);
xfs_btree_stage_afakeroot(cur, afake); xfs_btree_stage_afakeroot(cur, afake);
return cur; return cur;
} }
......
...@@ -43,9 +43,9 @@ struct xbtree_afakeroot; ...@@ -43,9 +43,9 @@ struct xbtree_afakeroot;
struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp, struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp,
struct xfs_trans *tp, struct xfs_buf *bp, struct xfs_trans *tp, struct xfs_buf *bp,
xfs_agnumber_t agno, struct xfs_perag *pag); struct xfs_perag *pag);
struct xfs_btree_cur *xfs_rmapbt_stage_cursor(struct xfs_mount *mp, struct xfs_btree_cur *xfs_rmapbt_stage_cursor(struct xfs_mount *mp,
struct xbtree_afakeroot *afake, xfs_agnumber_t agno); struct xbtree_afakeroot *afake, struct xfs_perag *pag);
void xfs_rmapbt_commit_staged_btree(struct xfs_btree_cur *cur, void xfs_rmapbt_commit_staged_btree(struct xfs_btree_cur *cur,
struct xfs_trans *tp, struct xfs_buf *agbp); struct xfs_trans *tp, struct xfs_buf *agbp);
int xfs_rmapbt_maxrecs(int blocklen, int leaf); int xfs_rmapbt_maxrecs(int blocklen, int leaf);
......
...@@ -269,8 +269,7 @@ xrep_agf_calc_from_btrees( ...@@ -269,8 +269,7 @@ xrep_agf_calc_from_btrees(
btreeblks += blocks - 1; btreeblks += blocks - 1;
/* Update the AGF counters from the rmapbt. */ /* Update the AGF counters from the rmapbt. */
cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag);
sc->sa.pag);
error = xfs_btree_count_blocks(cur, &blocks); error = xfs_btree_count_blocks(cur, &blocks);
if (error) if (error)
goto err; goto err;
...@@ -491,8 +490,7 @@ xrep_agfl_collect_blocks( ...@@ -491,8 +490,7 @@ xrep_agfl_collect_blocks(
xbitmap_init(&ra.agmetablocks); xbitmap_init(&ra.agmetablocks);
/* Find all space used by the free space btrees & rmapbt. */ /* Find all space used by the free space btrees & rmapbt. */
cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag);
sc->sa.pag);
error = xfs_rmap_query_all(cur, xrep_agfl_walk_rmap, &ra); error = xfs_rmap_query_all(cur, xrep_agfl_walk_rmap, &ra);
if (error) if (error)
goto err; goto err;
......
...@@ -556,7 +556,7 @@ xchk_bmap_check_ag_rmaps( ...@@ -556,7 +556,7 @@ xchk_bmap_check_ag_rmaps(
if (error) if (error)
return error; return error;
cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf, agno, NULL); cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf, sc->sa.pag);
sbcri.sc = sc; sbcri.sc = sc;
sbcri.whichfork = whichfork; sbcri.whichfork = whichfork;
......
...@@ -493,7 +493,7 @@ xchk_ag_btcur_init( ...@@ -493,7 +493,7 @@ xchk_ag_btcur_init(
if (sa->agf_bp && xfs_sb_version_hasrmapbt(&mp->m_sb) && if (sa->agf_bp && xfs_sb_version_hasrmapbt(&mp->m_sb) &&
xchk_ag_btree_healthy_enough(sc, sa->pag, XFS_BTNUM_RMAP)) { xchk_ag_btree_healthy_enough(sc, sa->pag, XFS_BTNUM_RMAP)) {
sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp,
agno, sa->pag); sa->pag);
} }
/* Set up a refcountbt cursor for cross-referencing. */ /* Set up a refcountbt cursor for cross-referencing. */
......
...@@ -509,7 +509,7 @@ xrep_put_freelist( ...@@ -509,7 +509,7 @@ xrep_put_freelist(
* create an rmap for the block prior to merging it or else other * create an rmap for the block prior to merging it or else other
* parts will break. * parts will break.
*/ */
error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1,
&XFS_RMAP_OINFO_AG); &XFS_RMAP_OINFO_AG);
if (error) if (error)
return error; return error;
...@@ -555,7 +555,7 @@ xrep_reap_block( ...@@ -555,7 +555,7 @@ xrep_reap_block(
} else { } else {
agf_bp = sc->sa.agf_bp; agf_bp = sc->sa.agf_bp;
} }
cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf_bp, agno, sc->sa.pag); cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf_bp, sc->sa.pag);
/* Can we find any other rmappings? */ /* Can we find any other rmappings? */
error = xfs_rmap_has_other_keys(cur, agbno, 1, oinfo, &has_other_rmap); error = xfs_rmap_has_other_keys(cur, agbno, 1, oinfo, &has_other_rmap);
...@@ -577,7 +577,8 @@ xrep_reap_block( ...@@ -577,7 +577,8 @@ xrep_reap_block(
* to run xfs_repair. * to run xfs_repair.
*/ */
if (has_other_rmap) if (has_other_rmap)
error = xfs_rmap_free(sc->tp, agf_bp, agno, agbno, 1, oinfo); error = xfs_rmap_free(sc->tp, agf_bp, sc->sa.pag, agbno,
1, oinfo);
else if (resv == XFS_AG_RESV_AGFL) else if (resv == XFS_AG_RESV_AGFL)
error = xrep_put_freelist(sc, agbno); error = xrep_put_freelist(sc, agbno);
else else
...@@ -892,8 +893,7 @@ xrep_find_ag_btree_roots( ...@@ -892,8 +893,7 @@ xrep_find_ag_btree_roots(
fab->height = 0; fab->height = 0;
} }
cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag);
sc->sa.pag);
error = xfs_rmap_query_all(cur, xrep_findroot_rmap, &ri); error = xfs_rmap_query_all(cur, xrep_findroot_rmap, &ri);
xfs_btree_del_cursor(cur, error); xfs_btree_del_cursor(cur, error);
......
...@@ -708,7 +708,7 @@ xfs_getfsmap_datadev_rmapbt_query( ...@@ -708,7 +708,7 @@ xfs_getfsmap_datadev_rmapbt_query(
/* Allocate cursor for this AG and query_range it. */ /* Allocate cursor for this AG and query_range it. */
*curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp,
info->pag->pag_agno, info->pag); info->pag);
return xfs_rmap_query_range(*curpp, &info->low, &info->high, return xfs_rmap_query_range(*curpp, &info->low, &info->high,
xfs_getfsmap_datadev_helper, info); xfs_getfsmap_datadev_helper, info);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment