Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <chentao@kylinos.cn>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>

authored by

Kunwu Chan and committed by
David Teigland
609ed5bd ad191e0e

+1 -2
+1 -2
fs/dlm/midcomms.c
··· 226 226 227 227 struct kmem_cache *dlm_midcomms_cache_create(void) 228 228 { 229 - return kmem_cache_create("dlm_mhandle", sizeof(struct dlm_mhandle), 230 - 0, 0, NULL); 229 + return KMEM_CACHE(dlm_mhandle, 0); 231 230 } 232 231 233 232 static inline const char *dlm_state_str(int state)