aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/bmap.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2024-11-03 20:18:44 -0800
committerDarrick J. Wong <[email protected]>2024-11-05 13:38:29 -0800
commit77a530e6c49d22bd4a221d2f059db24fc30094db (patch)
tree9c91268de40a88bb0f4bacd8b8c0f6028f13d1a9 /fs/xfs/scrub/bmap.c
parentadbc76aa0fedcb6da2d1ceb1ce786d1f963afee8 (diff)
xfs: add a generic group pointer to the btree cursor
Replace the pag pointers in the type specific union with a generic xfs_group pointer. This prepares for adding realtime group support. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/scrub/bmap.c')
-rw-r--r--fs/xfs/scrub/bmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/scrub/bmap.c b/fs/xfs/scrub/bmap.c
index fb022b403716..64168f2e4222 100644
--- a/fs/xfs/scrub/bmap.c
+++ b/fs/xfs/scrub/bmap.c
@@ -601,7 +601,8 @@ xchk_bmap_check_rmap(
xchk_fblock_set_corrupt(sc, sbcri->whichfork,
check_rec.rm_offset);
if (irec.br_startblock !=
- xfs_agbno_to_fsb(cur->bc_ag.pag, check_rec.rm_startblock))
+ xfs_agbno_to_fsb(to_perag(cur->bc_group),
+ check_rec.rm_startblock))
xchk_fblock_set_corrupt(sc, sbcri->whichfork,
check_rec.rm_offset);
if (irec.br_blockcount > check_rec.rm_blockcount)