jffs2: Simplify the allocation of slab caches
authorKunwu Chan <chentao@kylinos.cn>
Mon, 5 Feb 2024 07:51:44 +0000 (15:51 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 12 May 2024 20:17:41 +0000 (22:17 +0200)
commit7096fae56f82d00bf9f1217e6267811cc553350c
treeb94f8becfff6e65056afd22915c3e2d3afd8a251
parent2e0a808224028457040caa52fe883740013adac8
jffs2: Simplify the allocation of slab caches

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

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/jffs2/malloc.c