From 032004cd076bdc69076d8ea455ae2de10d996428 Mon Sep 17 00:00:00 2001 From: Shaun Tancheff Date: Sat, 8 Jun 2019 12:05:04 -0500 Subject: [PATCH] LU-12355 ldiskfs: bio_phys_segments symbol is not exported As of kenrel 5.0 bio_phys_segments not exported It is only used in one CDEBUG(D_INODE so use bio->bi_phys_segments directly. Linux-commit: 6c210aa596d0ecf6f3eea65c02ac807877385a18 Test-Parameters: trivial Signed-off-by: Shaun Tancheff Change-Id: I19cf7cab86ccebe4fccf7a34a945a4150069d18b Reviewed-on: https://review.whamcloud.com/35040 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/osd-ldiskfs/osd_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/osd-ldiskfs/osd_io.c b/lustre/osd-ldiskfs/osd_io.c index 7140abe..0212e1c 100644 --- a/lustre/osd-ldiskfs/osd_io.c +++ b/lustre/osd-ldiskfs/osd_io.c @@ -527,8 +527,8 @@ 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_phys_segments(q, bio), - queue_max_phys_segments(q), + bio->bi_phys_segments, + queue_max_phys_segments(q), 0, queue_max_hw_segments(q)); rc = osd_bio_integrity_handle(osd, bio, iobuf, bio_start_page_idx, -- 1.8.3.1