diff --git a/fs/bio.c b/fs/bio.c index ca8f7a850fe30aa27cb6e3b524464197bd76f3c8..249dd6bb66c843ee9e487f124dbe37afab095581 100644 --- a/fs/bio.c +++ b/fs/bio.c @@ -261,6 +261,7 @@ inline void __bio_clone(struct bio *bio, struct bio *bio_src) */ bio->bi_vcnt = bio_src->bi_vcnt; bio->bi_size = bio_src->bi_size; + bio->bi_idx = bio_src->bi_idx; bio_phys_segments(q, bio); bio_hw_segments(q, bio); }