nfsd: Simplify the allocation of slab caches in nfsd_drc_slab_create
authorKunwu Chan <chentao@kylinos.cn>
Sun, 4 Feb 2024 03:28:21 +0000 (11:28 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:24 +0000 (09:12 -0500)
commit192d80cdcb4cd6691e15b0e0fc9bc94d3203e30d
tree4fd1dbe14ed8b9397cd9c8c99f89d4edf699d4de
parent2f74991a494bdc8b24a63a26b9266b0992321b5f
nfsd: Simplify the allocation of slab caches in nfsd_drc_slab_create

Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.
And change cache name from 'nfsd_drc' to 'nfsd_cacherep'.

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