Whamcloud - gitweb
Branch HEAD
authoryangsheng <yangsheng>
Fri, 2 Nov 2007 04:14:51 +0000 (04:14 +0000)
committeryangsheng <yangsheng>
Fri, 2 Nov 2007 04:14:51 +0000 (04:14 +0000)
b=13568
i=adilger
i=johann

Remove the 2.4 kernel check from lproc_osc.c,osc_request.c in osc subsystem.

lustre/ChangeLog
lustre/osc/lproc_osc.c
lustre/osc/osc_request.c

index a233479..56745a2 100644 (file)
        * Recommended e2fsprogs version: 1.40.2-cfs1
        * Note that reiserfs quotas are disabled on SLES 10 in this kernel.
 
+Severity   : normal
+Bugzilla   : 13568
+Description: Remove 2.4 kernel checks lustre 1.8
+Details    : Remove 2.5.0 check from quota_check.c, quota_ctl.c,
+             quota_interface.c in quota subsystem.
+            Remove 2.4 kernel check from obd_mount.c, linux/linux-sysctl.c in
+             obdclass subsystem.
+             Remove lock_24kernel from fsfilt_ext3.c fsfilt_reiserfs.c 
+             lvfs_linux.c upcall_cache.c in lvfs subsystem.
+            Remove 2.4 kernel check from lproc_osc.c, osc_request.c in osc
+            subsystem.
+
 Severity   : enhancement
 Bugzilla   : 13690
 Description: Build SLES10 patchless client fails
@@ -404,16 +416,6 @@ Details    : Modify target file & which_patch.
              could exploit this flaw to run code in the kernel 
              (ie a root privilege escalation). (CVE-2007-4573). 
 
-Severity   : normal
-Bugzilla   : 13568
-Description: Remove 2.4 kernel checks lustre 1.8
-Details    : Remove 2.5.0 check from quota_check.c, quota_ctl.c,
-             quota_interface.c in quota subsystem.
-            Remove 2.4 kernel check from obd_mount.c, linux/linux-sysctl.c in
-             obdclass subsystem.
-             Remove lock_24kernel from fsfilt_ext3.c fsfilt_reiserfs.c 
-             lvfs_linux.c upcall_cache.c in lvfs subsystem.
-
 Severity   : major
 Bugzilla   : 13093
 Description: O_DIRECT bypasses client statistics.
index 3c40725..6b9d853 100644 (file)
@@ -25,9 +25,7 @@
 #define DEBUG_SUBSYSTEM S_CLASS
 
 #include <linux/version.h>
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
 #include <asm/statfs.h>
-#endif
 #include <obd_class.h>
 #include <lprocfs_status.h>
 #include <linux/seq_file.h>
index 41f3688..bab0344 100644 (file)
@@ -3229,14 +3229,10 @@ static int osc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
         int err = 0;
         ENTRY;
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-        MOD_INC_USE_COUNT;
-#else
         if (!try_module_get(THIS_MODULE)) {
                 CERROR("Can't get module. Is it alive?");
                 return -EINVAL;
         }
-#endif
         switch (cmd) {
         case OBD_IOC_LOV_GET_CONFIG: {
                 char *buf;
@@ -3305,11 +3301,7 @@ static int osc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                 GOTO(out, err = -ENOTTY);
         }
 out:
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-        MOD_DEC_USE_COUNT;
-#else
         module_put(THIS_MODULE);
-#endif
         return err;
 }