summaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-04-02 21:17:56 +0200
committerDavid Teigland <teigland@redhat.com>2024-04-02 22:24:40 +0200
commitca0dcef7cf6c2f746403eac4ac427bd2115e07a8 (patch)
treec877a413854382b7c38aaf5f2737016abf0a7627 /fs/dlm
parentdlm: remove callback reference counting (diff)
downloadlinux-ca0dcef7cf6c2f746403eac4ac427bd2115e07a8.tar.xz
linux-ca0dcef7cf6c2f746403eac4ac427bd2115e07a8.zip
dlm: Simplify the allocation of slab caches in dlm_lowcomms_msg_cache_create
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create to simplify the creation of SLAB caches. Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Acked-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/lowcomms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 6296c62c10fa..712165a1e567 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -248,7 +248,7 @@ struct kmem_cache *dlm_lowcomms_writequeue_cache_create(void)
struct kmem_cache *dlm_lowcomms_msg_cache_create(void)
{
- return kmem_cache_create("dlm_msg", sizeof(struct dlm_msg), 0, 0, NULL);
+ return KMEM_CACHE(dlm_msg, 0);
}
/* need to held writequeue_lock */