dlm: Simplify the allocation of slab caches in dlm_midcomms_cache_create
authorKunwu Chan <chentao@kylinos.cn>
Thu, 28 Mar 2024 15:48:34 +0000 (11:48 -0400)
committerDavid Teigland <teigland@redhat.com>
Mon, 1 Apr 2024 18:31:12 +0000 (13:31 -0500)
commit609ed5bde2bbe55b78142740de1451ece9896a84
tree906a64368bf256eadefcff99f840facc767b7878
parentad191e0eeebf64a60ca2d16ca01a223d2b1dd25e
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>
fs/dlm/midcomms.c