|
@@ -1589,6 +1589,13 @@ static void __init biovec_init_slabs(void)
|
|
int size;
|
|
int size;
|
|
struct biovec_slab *bvs = bvec_slabs + i;
|
|
struct biovec_slab *bvs = bvec_slabs + i;
|
|
|
|
|
|
|
|
+#ifndef CONFIG_BLK_DEV_INTEGRITY
|
|
|
|
+ if (bvs->nr_vecs <= BIO_INLINE_VECS) {
|
|
|
|
+ bvs->slab = NULL;
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
size = bvs->nr_vecs * sizeof(struct bio_vec);
|
|
size = bvs->nr_vecs * sizeof(struct bio_vec);
|
|
bvs->slab = kmem_cache_create(bvs->name, size, 0,
|
|
bvs->slab = kmem_cache_create(bvs->name, size, 0,
|
|
SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
|
|
SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
|