Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / obdclass / linux / linux-sysctl.c
index b5d950e..121fdf9 100644 (file)
@@ -184,10 +184,8 @@ int LL_PROC_PROTO(proc_pages_max)
 #ifdef RANDOM_FAIL_ALLOC
 int LL_PROC_PROTO(proc_alloc_fail_rate)
 {
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8)
-        loff_t *ppos = &filp->f_pos;
-#endif
         int rc          = 0;
+        DECLARE_LL_PROC_PPOS_DECL;
 
         if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) {
                 *lenp = 0;