nfsd: Simplify the allocation of slab caches in nfsd4_init_slabs
authorKunwu Chan <chentao@kylinos.cn>
Thu, 1 Feb 2024 08:37:52 +0000 (16:37 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:24 +0000 (09:12 -0500)
commit649e58d59322690f3d5f829d6c689e16a974b979
treea9a69163573eec4f56cd7cf1926ebd54335a1fd2
parent192d80cdcb4cd6691e15b0e0fc9bc94d3203e30d
nfsd: Simplify the allocation of slab caches in nfsd4_init_slabs

Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.
Make the code cleaner and more readable.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c