summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_refcount_btree.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-23 21:21:37 +0200
committerDarrick J. Wong <djwong@kernel.org>2021-10-19 20:45:16 +0200
commit9fa47bdcd33b117599e9ee3f2e315cb47939ac2d (patch)
tree4791e63154cebc89fb73fa4ec2218eb0cc3cd85e /fs/xfs/libxfs/xfs_refcount_btree.h
parentxfs: compute absolute maximum nlevels for each btree type (diff)
downloadlinux-9fa47bdcd33b117599e9ee3f2e315cb47939ac2d.tar.xz
linux-9fa47bdcd33b117599e9ee3f2e315cb47939ac2d.zip
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_refcount_btree.h')
-rw-r--r--fs/xfs/libxfs/xfs_refcount_btree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_refcount_btree.h b/fs/xfs/libxfs/xfs_refcount_btree.h
index d7f7c89cbf35..d66b37259bed 100644
--- a/fs/xfs/libxfs/xfs_refcount_btree.h
+++ b/fs/xfs/libxfs/xfs_refcount_btree.h
@@ -67,4 +67,7 @@ void xfs_refcountbt_commit_staged_btree(struct xfs_btree_cur *cur,
unsigned int xfs_refcountbt_maxlevels_ondisk(void);
+int __init xfs_refcountbt_init_cur_cache(void);
+void xfs_refcountbt_destroy_cur_cache(void);
+
#endif /* __XFS_REFCOUNT_BTREE_H__ */