fix: global_dirty_limit was introduced in v3.1
[lttng-modules.git] / include / wrapper / writeback.h
index 74b5482ca3b6957bc9b8fb17e250bb519e4619dd..0aa69486d6fde4c6234b76c98da087d194d38eca 100644 (file)
@@ -51,7 +51,7 @@ unsigned long __canary__global_wb_domain(void)
        return global_wb_domain.dirty_limit;
 }
 
-#else
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)
 
 static unsigned long *global_dirty_limit_sym;
 
@@ -88,11 +88,13 @@ unsigned long __canary__global_dirty_limit(void)
 
 #include <linux/writeback.h>
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)
 static inline
 unsigned long wrapper_global_dirty_limit(void)
 {
        return global_dirty_limit;
 }
+#endif
 
 #endif
 
This page took 0.023712 seconds and 4 git commands to generate.