block: Simplify the allocation of slab caches
authorKunwu Chan <chentao@kylinos.cn>
Wed, 31 Jan 2024 09:43:23 +0000 (17:43 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 18:29:40 +0000 (11:29 -0700)
commit48ff13a618b54aabc447659a9016068cf0cae322
tree6b52027c61471c928c22f6afcde657eecc11b350
parente516c3fc6c182736aec5418a73f15199640491e2
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: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20240131094323.146659-1-chentao@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c