aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ceph/libceph.h
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2022-02-15 20:23:14 +0800
committerIlya Dryomov <idryomov@gmail.com>2022-03-01 18:26:37 +0100
commitab58a5a1c0487b67f7409f39d3c8593d416d4e7f (patch)
tree5f31cd00559f75dc0fc46dc6ffcc7fe84c248e4b /include/linux/ceph/libceph.h
parentceph: add getvxattr op (diff)
downloadwireguard-linux-ab58a5a1c0487b67f7409f39d3c8593d416d4e7f.tar.xz
wireguard-linux-ab58a5a1c0487b67f7409f39d3c8593d416d4e7f.zip
ceph: move to a dedicated slabcache for ceph_cap_snap
There could be huge number of capsnaps around at any given time. On x86_64 the structure is 248 bytes, which will be rounded up to 256 bytes by kzalloc. Move this to a dedicated slabcache to save 8 bytes for each. [ jlayton: use kmem_cache_zalloc ] Signed-off-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph/libceph.h')
-rw-r--r--include/linux/ceph/libceph.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h
index edf62eaa6285..00af2c98da75 100644
--- a/include/linux/ceph/libceph.h
+++ b/include/linux/ceph/libceph.h
@@ -284,6 +284,7 @@ DEFINE_RB_LOOKUP_FUNC(name, type, keyfld, nodefld)
extern struct kmem_cache *ceph_inode_cachep;
extern struct kmem_cache *ceph_cap_cachep;
+extern struct kmem_cache *ceph_cap_snap_cachep;
extern struct kmem_cache *ceph_cap_flush_cachep;
extern struct kmem_cache *ceph_dentry_cachep;
extern struct kmem_cache *ceph_file_cachep;