nfsd: Simplify the allocation of slab caches in nfsd4_init_pnfs
authorKunwu Chan <chentao@kylinos.cn>
Wed, 31 Jan 2024 06:22:27 +0000 (14:22 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:23 +0000 (09:12 -0500)
commit10bcc2f1c875973f8c6ee295a827ace58bd61648
treeea65b4e0ba5b04e900b167a4cf09f1a8ab382fca
parent05eda6e75773592760285e10ac86c56d683be17f
nfsd: Simplify the allocation of slab caches in nfsd4_init_pnfs

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>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4layouts.c