fix: global_dirty_limit was introduced in v3.1
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 7 Jul 2020 17:00:10 +0000 (13:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Jul 2020 20:42:54 +0000 (16:42 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Id97dbb2d0181a45c45cfed36c4be8753cabac283

wrapper/writeback.h

index 00d727cc3b0405713554275cd2997345cc7e0149..328c9323549ee8aee5ef8711dbab153513b1ad3d 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.02704 seconds and 4 git commands to generate.