diff options
author | Eric Suen <ericsu@linux.microsoft.com> | 2024-08-27 10:40:03 -0700 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-08-27 18:42:27 -0400 |
commit | 4ad858bd6fbe21c563f177d499da5f99b4b2480e (patch) | |
tree | 437609c3b30f4212a01b050a54aee393bbb270f5 /security/selinux/ss/ebitmap.c | |
parent | 2571bb9d553ba2b8db1971bd3c903bff07d0bb11 (diff) |
selinux: replace kmem_cache_create() with KMEM_CACHE()
Based on guidance in include/linux/slab.h, replace kmem_cache_create()
with KMEM_CACHE() for sources under security/selinux to simplify creation
of SLAB caches.
Signed-off-by: Eric Suen <ericsu@linux.microsoft.com>
[PM: minor grammar nits in the description]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/ebitmap.c')
-rw-r--r-- | security/selinux/ss/ebitmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/security/selinux/ss/ebitmap.c b/security/selinux/ss/ebitmap.c index 04d7f4907a068..99c01be15115a 100644 --- a/security/selinux/ss/ebitmap.c +++ b/security/selinux/ss/ebitmap.c @@ -572,7 +572,5 @@ u32 ebitmap_hash(const struct ebitmap *e, u32 hash) void __init ebitmap_cache_init(void) { - ebitmap_node_cachep = kmem_cache_create("ebitmap_node", - sizeof(struct ebitmap_node), 0, - SLAB_PANIC, NULL); + ebitmap_node_cachep = KMEM_CACHE(ebitmap_node, SLAB_PANIC); } |