Whamcloud - gitweb
LU-12634 osd-ldiskfs: bi_phys_segments removed from struct bio
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_io.c
index 913fac8..b0774e2 100644 (file)
@@ -529,7 +529,7 @@ static int osd_do_bio(struct osd_device *osd, struct inode *inode,
                                       bi_size, bio->bi_vcnt, bio->bi_max_vecs,
                                       bio_sectors(bio),
                                       queue_max_sectors(q),
-                                      bio->bi_phys_segments,
+                                      osd_bio_nr_segs(bio),
                                       queue_max_segments(q));
                                rc = osd_bio_integrity_handle(osd, bio,
                                        iobuf, bio_start_page_idx,