xfs: use separate btree cursor cache for each btree type
Now that we have the infrastructure to track the max possible height of each btree type, we can create a separate slab cache for cursors of each type of btree. For smaller indices like the free space btrees, this means that we can pack more cursors into a slab page, improving slab utilization. Signed-off-by:Darrick J. Wong <djwong@kernel.org> Reviewed-by:
Dave Chinner <dchinner@redhat.com>
Showing
- fs/xfs/libxfs/xfs_alloc_btree.c 22 additions, 1 deletionfs/xfs/libxfs/xfs_alloc_btree.c
- fs/xfs/libxfs/xfs_alloc_btree.h 3 additions, 0 deletionsfs/xfs/libxfs/xfs_alloc_btree.h
- fs/xfs/libxfs/xfs_bmap_btree.c 22 additions, 1 deletionfs/xfs/libxfs/xfs_bmap_btree.c
- fs/xfs/libxfs/xfs_bmap_btree.h 3 additions, 0 deletionsfs/xfs/libxfs/xfs_bmap_btree.h
- fs/xfs/libxfs/xfs_btree.c 45 additions, 6 deletionsfs/xfs/libxfs/xfs_btree.c
- fs/xfs/libxfs/xfs_btree.h 8 additions, 12 deletionsfs/xfs/libxfs/xfs_btree.h
- fs/xfs/libxfs/xfs_ialloc_btree.c 22 additions, 1 deletionfs/xfs/libxfs/xfs_ialloc_btree.c
- fs/xfs/libxfs/xfs_ialloc_btree.h 3 additions, 0 deletionsfs/xfs/libxfs/xfs_ialloc_btree.h
- fs/xfs/libxfs/xfs_refcount_btree.c 22 additions, 1 deletionfs/xfs/libxfs/xfs_refcount_btree.c
- fs/xfs/libxfs/xfs_refcount_btree.h 3 additions, 0 deletionsfs/xfs/libxfs/xfs_refcount_btree.h
- fs/xfs/libxfs/xfs_rmap_btree.c 22 additions, 1 deletionfs/xfs/libxfs/xfs_rmap_btree.c
- fs/xfs/libxfs/xfs_rmap_btree.h 3 additions, 0 deletionsfs/xfs/libxfs/xfs_rmap_btree.h
- fs/xfs/xfs_super.c 7 additions, 6 deletionsfs/xfs/xfs_super.c
Loading
Please register or sign in to comment