cred: Use KMEM_CACHE() instead of kmem_cache_create()
authorKunwu Chan <chentao@kylinos.cn>
Fri, 23 Feb 2024 10:16:12 +0000 (18:16 +0800)
committerPaul Moore <paul@paul-moore.com>
Fri, 23 Feb 2024 22:33:31 +0000 (17:33 -0500)
commitedc6670233a333ccfd1ec0548f068bd121d209c8
treecfb528410ff58ffd71f4fb570dfcd3b6106c961e
parent260017f31a8c3879be5f9048a46f382b06c1923a
cred: 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>
[PM: alignment fixes in both code and description]
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/cred.c