diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-09 03:33:52 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-14 21:16:06 +0200 |
commit | f4f8154a08bc5801a3f130db69e370d249e791ab (patch) | |
tree | 93839696b4ec7d01f54e9a51bacfd53206135166 /block/blk-core.c | |
parent | block: Add bioset_init()/bioset_exit() (diff) | |
download | linux-f4f8154a08bc5801a3f130db69e370d249e791ab.tar.xz 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 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 341501c5e239..b431558f39bc 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -3511,7 +3511,7 @@ int blk_rq_prep_clone(struct request *rq, struct request *rq_src, struct bio *bio, *bio_src; if (!bs) - bs = fs_bio_set; + bs = &fs_bio_set; __rq_for_each_bio(bio_src, rq_src) { bio = bio_clone_fast(bio_src, gfp_mask, bs); |