X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_compat.h;h=f55f6e5ed96d2f6195b51468983e88e66b8a0aa2;hp=34465f107ab81aa113a18e560367f05477af0a49;hb=fd193758bb95e3fbb4cd04e88f0d964f9cb510cf;hpb=28e5420434dceae977e9dc493086b68079c76301 diff --git a/lustre/include/lustre_compat.h b/lustre/include/lustre_compat.h index 34465f1..f55f6e5 100644 --- 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 } +#ifdef HAVE_BLK_INTEGRITY_ENABLED #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; } +#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)