diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-04-23 21:56:57 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-04-23 22:00:36 -0800 |
commit | c35fbbc025c6099969befb4dfaf065215cf40cf3 (patch) | |
tree | 3987c3933b0302617425009c7ff23e362268499d /linux/bio.c | |
parent | 1b495cf9e1c75d19cb1bff9b0b13d03c9a62153c (diff) |
Update bcachefs sources to 2e70771b8d
Diffstat (limited to 'linux/bio.c')
-rw-r--r-- | linux/bio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linux/bio.c b/linux/bio.c index 8fb10ce4..f4356699 100644 --- a/linux/bio.c +++ b/linux/bio.c @@ -278,10 +278,8 @@ struct bio *bio_alloc_bioset(gfp_t gfp_mask, int nr_iovecs, struct bio_set *bs) return NULL; bio = p + front_pad; - bio_init(bio); - bio->bi_pool = bs; - bio->bi_max_vecs = nr_iovecs; - bio->bi_io_vec = bio->bi_inline_vecs; + bio_init(bio, bio->bi_inline_vecs, nr_iovecs); + bio->bi_pool = bs; return bio; } |