Whamcloud - gitweb
LU-12634 osd-ldiskfs: bi_phys_segments removed from struct bio 46/35746/3
authorShaun Tancheff <stancheff@cray.com>
Fri, 9 Aug 2019 05:51:41 +0000 (00:51 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Sep 2019 23:04:19 +0000 (23:04 +0000)
commitb3bc81598ceb2b60358ca657d46fdd7136c84b07
tree0d15c5098d93424aadbea43bc2ff16eae20cbc4a
parent82430bdc5a042a0cf74965e0bb975eef8316c0d7
LU-12634 osd-ldiskfs: bi_phys_segments removed from struct bio

Linux 5.3 removed the bi_phys_segments field in struct bio
Use bio_segments() if bi_phys_segments is not available

kernel-commit: 14ccb66b3f585b2bc21e7256c96090abed5a512c

Test-Parameters: trivial
Cray-bug-id: LUS-7689
Signed-off-by: Shaun Tancheff <stancheff@cray.com>
Change-Id: I87f2b1dc34f47a4eaa5ab5d6e55a903afc317011
Reviewed-on: https://review.whamcloud.com/35746
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c