Skip to content
Commit 48ff13a6 authored by Kunwu Chan's avatar Kunwu Chan Committed by Jens Axboe
Browse files

block: 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.

Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20240131094323.146659-1-chentao@kylinos.cn


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e516c3fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment