diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-10-22 20:32:58 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-12-29 08:28:46 +0100 |
commit | 1b4344986926da324b5cd10b683e5a1a5e1b7db3 (patch) | |
tree | f196fad09555f32e4464df2ea4c8fea17ad99e76 /fs/bio.c | |
parent | 7ff9345ffac56743b5001561bc2dc1e041b79149 (diff) | |
download | op-kernel-dev-1b4344986926da324b5cd10b683e5a1a5e1b7db3.zip op-kernel-dev-1b4344986926da324b5cd10b683e5a1a5e1b7db3.tar.gz |
bio: move the slab pointer inside the bio_set
In preparation for adding differently sized bios.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1404,12 +1404,15 @@ void bioset_free(struct bio_set *bs) struct bio_set *bioset_create(int bio_pool_size, int bvec_pool_size) { - struct bio_set *bs = kzalloc(sizeof(*bs), GFP_KERNEL); + struct bio_set *bs; + bs = kzalloc(sizeof(*bs), GFP_KERNEL); if (!bs) return NULL; - bs->bio_pool = mempool_create_slab_pool(bio_pool_size, bio_slab); + bs->bio_slab = bio_slab; + + bs->bio_pool = mempool_create_slab_pool(bio_pool_size, bs->bio_slab); if (!bs->bio_pool) goto bad; |