summaryrefslogtreecommitdiffstats
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-05-20 18:25:47 -0400
committerJens Axboe <axboe@kernel.dk>2018-05-30 17:33:32 -0400
commit338aa96d5661048b3c0cafc6d91876025603cacf (patch)
tree65a7577a68ff54b69008d59838fb756086728dfb /include/linux/bio.h
parent0b6bad7d669ef2abd3b9e1f8cee1fbd448abbc5c (diff)
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.h5
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 {
760 struct kmem_cache *slab; 760 struct kmem_cache *slab;
761}; 761};
762 762
763static inline bool bioset_initialized(struct bio_set *bs)
764{
765 return bs->bio_slab != NULL;
766}
767
763/* 768/*
764 * a small number of entries is fine, not going to be performance critical. 769 * a small number of entries is fine, not going to be performance critical.
765 * basically we just need to survive 770 * basically we just need to survive