mbcache: Simplify the allocation of slab caches
authorKunwu Chan <chentao@kylinos.cn>
Thu, 1 Feb 2024 09:34:26 +0000 (17:34 +0800)
committerChristian Brauner <brauner@kernel.org>
Fri, 2 Feb 2024 12:11:50 +0000 (13:11 +0100)
commitce51bf1790c4972125b19c22dbfa76d7e0136280
tree5c0a1c755eb7c765c69cfdc442611727cb7292ea
parent617fc7775370324d0a2b888625b042221ebdcb62
mbcache: Simplify the allocation of slab caches

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>
Link: https://lore.kernel.org/r/20240201093426.207932-1-chentao@kylinos.cn
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/mbcache.c