Fix: Add granularity to RHEL kernel version checks
[lttng-modules.git] / instrumentation / events / lttng-module / writeback.h
index 225940c90d67ce71ad718b879eb8ee1ed8266e7b..215662b783887d1d05cc7b5adb40cebce7d53ba6 100644 (file)
@@ -13,7 +13,8 @@
 #ifndef _TRACE_WRITEBACK_DEF_
 #define _TRACE_WRITEBACK_DEF_
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0) && \
+       LTTNG_RHEL_VERSION_CODE < LTTNG_RHEL_KERNEL_VERSION(3,10,0,327,10,1))
 static inline struct backing_dev_info *inode_to_bdi(struct inode *inode)
 {
        struct super_block *sb = inode->i_sb;
This page took 0.023995 seconds and 4 git commands to generate.