From: Kunwu Chan Date: Thu, 28 Mar 2024 15:48:34 +0000 (-0400) Subject: dlm: Simplify the allocation of slab caches in dlm_midcomms_cache_create X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=609ed5bde2bbe55b78142740de1451ece9896a84;p=linux.git dlm: Simplify the allocation of slab caches in dlm_midcomms_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 Signed-off-by: Alexander Aring Signed-off-by: David Teigland --- diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c index 2247ebb61be1e..8e9920f1b48b7 100644 --- a/fs/dlm/midcomms.c +++ b/fs/dlm/midcomms.c @@ -226,8 +226,7 @@ static DEFINE_MUTEX(close_lock); struct kmem_cache *dlm_midcomms_cache_create(void) { - return kmem_cache_create("dlm_mhandle", sizeof(struct dlm_mhandle), - 0, 0, NULL); + return KMEM_CACHE(dlm_mhandle, 0); } static inline const char *dlm_state_str(int state)