aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bio.c')
-rw-r--r--fs/bio.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/bio.c b/fs/bio.c
index 377046d82945..eb8fbc53f2cd 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -1141,8 +1141,7 @@ static int biovec_create_pools(struct bio_set *bs, int pool_entries, int scale)
1141 if (i >= scale) 1141 if (i >= scale)
1142 pool_entries >>= 1; 1142 pool_entries >>= 1;
1143 1143
1144 *bvp = mempool_create(pool_entries, mempool_alloc_slab, 1144 *bvp = mempool_create_slab_pool(pool_entries, bp->slab);
1145 mempool_free_slab, bp->slab);
1146 if (!*bvp) 1145 if (!*bvp)
1147 return -ENOMEM; 1146 return -ENOMEM;
1148 } 1147 }
@@ -1179,9 +1178,7 @@ struct bio_set *bioset_create(int bio_pool_size, int bvec_pool_size, int scale)
1179 if (!bs) 1178 if (!bs)
1180 return NULL; 1179 return NULL;
1181 1180
1182 bs->bio_pool = mempool_create(bio_pool_size, mempool_alloc_slab, 1181 bs->bio_pool = mempool_create_slab_pool(bio_pool_size, bio_slab);
1183 mempool_free_slab, bio_slab);
1184
1185 if (!bs->bio_pool) 1182 if (!bs->bio_pool)
1186 goto bad; 1183 goto bad;
1187 1184