summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/alloc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-11-03 20:18:44 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-11-05 13:38:29 -0800
commit77a530e6c49d22bd4a221d2f059db24fc30094db (patch)
tree9c91268de40a88bb0f4bacd8b8c0f6028f13d1a9 /fs/xfs/scrub/alloc.c
parentadbc76aa0fedcb6da2d1ceb1ce786d1f963afee8 (diff)
downloadlinux-77a530e6c49d22bd4a221d2f059db24fc30094db.tar.gz
linux-77a530e6c49d22bd4a221d2f059db24fc30094db.tar.bz2
linux-77a530e6c49d22bd4a221d2f059db24fc30094db.zip
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 <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/alloc.c')
-rw-r--r--fs/xfs/scrub/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/alloc.c b/fs/xfs/scrub/alloc.c
index d1b8a4997dd2..8b282138097f 100644
--- a/fs/xfs/scrub/alloc.c
+++ b/fs/xfs/scrub/alloc.c
@@ -139,7 +139,7 @@ xchk_allocbt_rec(
struct xchk_alloc *ca = bs->private;
xfs_alloc_btrec_to_irec(rec, &irec);
- if (xfs_alloc_check_irec(bs->cur->bc_ag.pag, &irec) != NULL) {
+ if (xfs_alloc_check_irec(to_perag(bs->cur->bc_group), &irec) != NULL) {
xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
return 0;
}