nfsd: Simplify the allocation of slab caches in nfsd_file_cache_init
authorKunwu Chan <chentao@kylinos.cn>
Wed, 31 Jan 2024 06:56:53 +0000 (14:56 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:23 +0000 (09:12 -0500)
commit2f74991a494bdc8b24a63a26b9266b0992321b5f
tree8d4344d0e2fbb647e4bea06fa14797008a40ac9c
parent10bcc2f1c875973f8c6ee295a827ace58bd61648
nfsd: Simplify the allocation of slab caches in nfsd_file_cache_init

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>
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c