Use KMEM_CACHE() instead of kmem_cache_create() to simplify the code. Signed-off-by: Longlong Xia --- block/bio-integrity-auto.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/block/bio-integrity-auto.c b/block/bio-integrity-auto.c index 687952f63bbb..167cdc6f5920 100644 --- a/block/bio-integrity-auto.c +++ b/block/bio-integrity-auto.c @@ -203,9 +203,7 @@ void blk_flush_integrity(void) static int __init blk_integrity_auto_init(void) { - bid_slab = kmem_cache_create("bio_integrity_data", - sizeof(struct bio_integrity_data), 0, - SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL); + bid_slab = KMEM_CACHE(bio_integrity_data, SLAB_HWCACHE_ALIGN | SLAB_PANIC); if (mempool_init_slab_pool(&bid_pool, BIO_POOL_SIZE, bid_slab)) panic("bio: can't create integrity pool\n"); -- 2.43.0