diff options
author | 2018-05-08 21:33:52 -0400 | |
---|---|---|
committer | 2018-05-14 13:16:06 -0600 | |
commit | f4f8154a08bc5801a3f130db69e370d249e791ab (patch) | |
tree | 93839696b4ec7d01f54e9a51bacfd53206135166 /include/linux/bio.h | |
parent | block: Add bioset_init()/bioset_exit() (diff) | |
download | linux-f4f8154a08bc5801a3f130db69e370d249e791ab.tar.gz linux-f4f8154a08bc5801a3f130db69e370d249e791ab.tar.bz2 linux-f4f8154a08bc5801a3f130db69e370d249e791ab.zip |
block: Use bioset_init() for fs_bio_set
Minor optimization - remove a pointer indirection when using fs_bio_set.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index fa3cf94a5015..91b02520e2f8 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -423,11 +423,11 @@ extern void __bio_clone_fast(struct bio *, struct bio *); extern struct bio *bio_clone_fast(struct bio *, gfp_t, struct bio_set *); extern struct bio *bio_clone_bioset(struct bio *, gfp_t, struct bio_set *bs); -extern struct bio_set *fs_bio_set; +extern struct bio_set fs_bio_set; static inline struct bio *bio_alloc(gfp_t gfp_mask, unsigned int nr_iovecs) { - return bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set); + return bio_alloc_bioset(gfp_mask, nr_iovecs, &fs_bio_set); } static inline struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned int nr_iovecs) |