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 /include/linux/bio.h | |
parent | 1b495cf9e1c75d19cb1bff9b0b13d03c9a62153c (diff) |
Update bcachefs sources to 2e70771b8d
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 49d26b53..10cad5cc 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -451,11 +451,15 @@ static inline struct bio *bio_clone(struct bio *bio, gfp_t gfp_mask) return bio_clone_bioset(bio, gfp_mask, NULL); } -static inline void bio_init(struct bio *bio) +static inline void bio_init(struct bio *bio, struct bio_vec *table, + unsigned short max_vecs) { memset(bio, 0, sizeof(*bio)); atomic_set(&bio->__bi_remaining, 1); atomic_set(&bio->__bi_cnt, 1); + + bio->bi_io_vec = table; + bio->bi_max_vecs = max_vecs; } #endif /* __LINUX_BIO_H */ |