summaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-03-28 11:48:34 -0400
committerDavid Teigland <teigland@redhat.com>2024-04-01 13:31:12 -0500
commit609ed5bde2bbe55b78142740de1451ece9896a84 (patch)
tree906a64368bf256eadefcff99f840facc767b7878 /fs/dlm
parentad191e0eeebf64a60ca2d16ca01a223d2b1dd25e (diff)
downloadlinux-609ed5bde2bbe55b78142740de1451ece9896a84.tar.gz
linux-609ed5bde2bbe55b78142740de1451ece9896a84.tar.bz2
linux-609ed5bde2bbe55b78142740de1451ece9896a84.zip
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>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/midcomms.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
index 2247ebb61be1..8e9920f1b48b 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)