fs: Use KMEM_CACHE instead of kmem_cache_create
authorKunwu Chan <chentao@kylinos.cn>
Wed, 31 Jan 2024 07:09:41 +0000 (15:09 +0800)
committerChristian Brauner <brauner@kernel.org>
Fri, 2 Feb 2024 12:11:50 +0000 (13:11 +0100)
commit617fc7775370324d0a2b888625b042221ebdcb62
treecd670887061647821cb329613a2368a3e408532f
parentc67ef897fe08effad98f0c7fb9223fa1f771d09e
fs: Use KMEM_CACHE instead of kmem_cache_create

commit 0a31bd5f2bbb ("KMEM_CACHE(): simplify slab cache creation")
introduces a new macro.
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/20240131070941.135178-1-chentao@kylinos.cn
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/backing-file.c