summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_btree_mem.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/libxfs/xfs_btree_mem.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/libxfs/xfs_btree_mem.c')
-rw-r--r--fs/xfs/libxfs/xfs_btree_mem.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_btree_mem.c b/fs/xfs/libxfs/xfs_btree_mem.c
index 036061fe32cc..df3d613675a1 100644
--- a/fs/xfs/libxfs/xfs_btree_mem.c
+++ b/fs/xfs/libxfs/xfs_btree_mem.c
@@ -57,10 +57,8 @@ xfbtree_dup_cursor(
ncur->bc_flags = cur->bc_flags;
ncur->bc_nlevels = cur->bc_nlevels;
ncur->bc_mem.xfbtree = cur->bc_mem.xfbtree;
-
- if (cur->bc_mem.pag)
- ncur->bc_mem.pag = xfs_perag_hold(cur->bc_mem.pag);
-
+ if (cur->bc_group)
+ ncur->bc_group = xfs_group_hold(cur->bc_group);
return ncur;
}