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-11712 osd-ldiskfs: Wrap blk integrity with config check
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_compat.h
diff --git
a/lustre/include/lustre_compat.h
b/lustre/include/lustre_compat.h
index
34465f1
..
f55f6e5
100644
(file)
--- a/
lustre/include/lustre_compat.h
+++ b/
lustre/include/lustre_compat.h
@@
-742,6
+742,7
@@
static inline unsigned int bip_size(struct bio_integrity_payload *bip)
#endif
}
#endif
}
+#ifdef HAVE_BLK_INTEGRITY_ENABLED
#ifndef INTEGRITY_FLAG_READ
#define INTEGRITY_FLAG_READ BLK_INTEGRITY_VERIFY
#endif
#ifndef INTEGRITY_FLAG_READ
#define INTEGRITY_FLAG_READ BLK_INTEGRITY_VERIFY
#endif
@@
-777,6
+778,12
@@
static inline bool bdev_integrity_enabled(struct block_device *bdev, int rw)
return false;
}
return false;
}
+#else
+static inline bool bdev_integrity_enabled(struct block_device *bdev, int rw)
+{
+ return false;
+}
+#endif /* HAVE_BLK_INTEGRITY_ENABLED */
#ifdef HAVE_PAGEVEC_INIT_ONE_PARAM
#define ll_pagevec_init(pvec, n) pagevec_init(pvec)
#ifdef HAVE_PAGEVEC_INIT_ONE_PARAM
#define ll_pagevec_init(pvec, n) pagevec_init(pvec)