diff options
author | Junichi Nomura <j-nomura@ce.jp.nec.com> | 2014-10-03 17:27:12 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-10-03 15:28:18 -0600 |
commit | d8f429e1669b9709f5b669aac9d734dbe0640891 (patch) | |
tree | c14ac256f51a230b472ada1525d2e7275f266436 /include/linux/bio.h | |
parent | 11dfce509eaa35e8fc81cb50d0910c0e235fd7e2 (diff) | |
download | lwn-d8f429e1669b9709f5b669aac9d734dbe0640891.tar.gz lwn-d8f429e1669b9709f5b669aac9d734dbe0640891.zip |
block: add bioset_create_nobvec()
Users of bio_clone_fast() do not want bios with their own bvecs.
Allocating a bvec mempool as part of the bioset intended for such users
is a waste of memory.
bioset_create_nobvec() creates a bioset that doesn't have the bvec
mempool.
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index ce6b75964b71..7347f486ceca 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -378,6 +378,7 @@ static inline struct bio *bio_next_split(struct bio *bio, int sectors, } extern struct bio_set *bioset_create(unsigned int, unsigned int); +extern struct bio_set *bioset_create_nobvec(unsigned int, unsigned int); extern void bioset_free(struct bio_set *); extern mempool_t *biovec_create_pool(int pool_entries); |