Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-12634 osd-ldiskfs: bi_phys_segments removed from struct bio
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_internal.h
diff --git
a/lustre/osd-ldiskfs/osd_internal.h
b/lustre/osd-ldiskfs/osd_internal.h
index
fc9ab44
..
c29e53d
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_internal.h
+++ b/
lustre/osd-ldiskfs/osd_internal.h
@@
-1534,4
+1534,10
@@
static inline bool bio_integrity_prep_fn(struct bio *bio,
}
#endif
+#ifdef HAVE_BIO_BI_PHYS_SEGMENTS
+#define osd_bio_nr_segs(bio) ((bio)->bi_phys_segments)
+#else
+#define osd_bio_nr_segs(bio) bio_segments((bio))
+#endif /* HAVE_BIO_BI_PHYS_SEGMENTS */
+
#endif /* _OSD_INTERNAL_H */