b=13568
i=nathan
i=scjody
Remove 2.4 kernel code from lustre/mgc/mgc_request.c.
Remove 2.4 kernel code from lustre/obdecho/echo_client.c.
Remove 2.4 kernel check from lustre/mgs/lproc_mgs.c,
lustre/mgs/mgs_fs.c.
+ Remove 2.4 kernel code from lustre/mgc/mgc_request.c.
Severity : enhancement
Bugzilla : 13690
int rc;
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) {
/* REPLicator context */
case OBD_IOC_PARSE: {
GOTO(out, rc = -ENOTTY);
}
out:
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
- MOD_DEC_USE_COUNT;
-#else
module_put(THIS_MODULE);
-#endif
return rc;
}