Эх сурвалжийг харах

bio-integrity: remove the needless fail handle of bip_slab creating

bip_slab is created with SLAB_PANIC, so the fail handler is unneeded.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Gu Zheng 10 жил өмнө
parent
commit
b65c7491cb
1 өөрчлөгдсөн 0 нэмэгдсэн , 2 устгасан
  1. 0 2
      block/bio-integrity.c

+ 0 - 2
block/bio-integrity.c

@@ -513,6 +513,4 @@ void __init bio_integrity_init(void)
 				     sizeof(struct bio_integrity_payload) +
 				     sizeof(struct bio_vec) * BIP_INLINE_VECS,
 				     0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
-	if (!bip_slab)
-		panic("Failed to create slab\n");
 }