diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-21 01:25:47 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-31 00:33:32 +0300 |
commit | 338aa96d5661048b3c0cafc6d91876025603cacf (patch) | |
tree | 65a7577a68ff54b69008d59838fb756086728dfb /include/linux/bio.h | |
parent | 0b6bad7d669ef2abd3b9e1f8cee1fbd448abbc5c (diff) | |
download | linux-338aa96d5661048b3c0cafc6d91876025603cacf.tar.xz |
block: convert bounce, q->bio_split to bioset_init()/mempool_init()
Convert the core block functionality to embedded bio sets.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 98b175cc00d5..5e472fcafa24 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -760,6 +760,11 @@ struct biovec_slab { struct kmem_cache *slab; }; +static inline bool bioset_initialized(struct bio_set *bs) +{ + return bs->bio_slab != NULL; +} + /* * a small number of entries is fine, not going to be performance critical. * basically we just need to survive |