diff options
| author | Christoph Hellwig <[email protected]> | 2024-11-04 04:18:44 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-11-05 21:38:29 +0000 |
| commit | 77a530e6c49d22bd4a221d2f059db24fc30094db (patch) | |
| tree | 9c91268de40a88bb0f4bacd8b8c0f6028f13d1a9 /fs/xfs/libxfs/xfs_btree_mem.c | |
| parent | xfs: convert busy extent tracking to the generic group structure (diff) | |
| download | kernel-77a530e6c49d22bd4a221d2f059db24fc30094db.tar.gz kernel-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 <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree_mem.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_btree_mem.c | 6 |
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; } |
