diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:16:05 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-12-15 17:29:13 -0800 |
commit | 35f196befac8262eee611c0c4f0ccf708d32c9ce (patch) | |
tree | cd8fa707cb0bc6fa6ae100b1bef0934e2682bd02 /fs/xfs/scrub | |
parent | 48f416e6c9b7c77ca510017fe393e1fe3666e971 (diff) |
xfs: widen xfs_rmap_irec fields to handle realtime rmapbt
Change the startblock and blockcount fields of xfs_rmap_irec to be 64
bits wide. This enables us to use the same high level rmap code for
either tree. We'll also collect all the resulting breakage fixes here.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r-- | fs/xfs/scrub/alloc_repair.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/scrub/alloc_repair.c b/fs/xfs/scrub/alloc_repair.c index a46678b9c9ed..917ccb939800 100644 --- a/fs/xfs/scrub/alloc_repair.c +++ b/fs/xfs/scrub/alloc_repair.c @@ -476,10 +476,8 @@ xrep_abt_dispose_reservations( for_each_xrep_newbt_reservation(&ra->new_bnobt_info, resv, n) { /* Add a deferred rmap for each extent we used. */ if (resv->used > 0) - xfs_rmap_alloc_extent(sc->tp, - XFS_FSB_TO_AGNO(sc->mp, resv->fsbno), - XFS_FSB_TO_AGBNO(sc->mp, resv->fsbno), - resv->used, XFS_RMAP_OWN_AG); + xfs_rmap_alloc_extent(sc->tp, resv->fsbno, resv->used, + XFS_RMAP_OWN_AG); /* * Add a deferred free for each block we didn't use and now |