xfs: convert rmap btree cursor to using a perag
Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
committed by
Dave Chinner
parent
be9fb17d88
commit
fa9c3c1973
@@ -1092,7 +1092,7 @@ xfs_alloc_ag_vextent_small(
|
||||
* 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.
|
||||
*/
|
||||
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);
|
||||
if (error)
|
||||
goto error;
|
||||
@@ -1169,7 +1169,7 @@ xfs_alloc_ag_vextent(
|
||||
|
||||
/* if not file data, insert new block into the reverse map btree */
|
||||
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);
|
||||
if (error)
|
||||
return error;
|
||||
@@ -1899,12 +1899,13 @@ xfs_free_ag_extent(
|
||||
int haveright; /* have a right neighbor */
|
||||
int i;
|
||||
int error;
|
||||
struct xfs_perag *pag = agbp->b_pag;
|
||||
|
||||
bno_cur = cnt_cur = NULL;
|
||||
mp = tp->t_mountp;
|
||||
|
||||
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)
|
||||
goto error0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user