diff options
-rw-r--r-- | fs/bio.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1589,6 +1589,13 @@ static void __init biovec_init_slabs(void) | |||
1589 | int size; | 1589 | int size; |
1590 | struct biovec_slab *bvs = bvec_slabs + i; | 1590 | struct biovec_slab *bvs = bvec_slabs + i; |
1591 | 1591 | ||
1592 | #ifndef CONFIG_BLK_DEV_INTEGRITY | ||
1593 | if (bvs->nr_vecs <= BIO_INLINE_VECS) { | ||
1594 | bvs->slab = NULL; | ||
1595 | continue; | ||
1596 | } | ||
1597 | #endif | ||
1598 | |||
1592 | size = bvs->nr_vecs * sizeof(struct bio_vec); | 1599 | size = bvs->nr_vecs * sizeof(struct bio_vec); |
1593 | bvs->slab = kmem_cache_create(bvs->name, size, 0, | 1600 | bvs->slab = kmem_cache_create(bvs->name, size, 0, |
1594 | SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL); | 1601 | SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL); |