b=13568
i=shadow
i=adilger
Remove 2.4 kernel code from lustre/mdc/mdc_request.c.
lustre/mgs/mgs_fs.c.
Remove 2.4 kernel code from lustre/mgc/mgc_request.c.
Remove 2.4 kernel check from lustre/mdt/mdt_lproc.c.
+ Remove 2.4 kernel code from lustre/mdc/mdc_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) {
case OBD_IOC_CLIENT_RECOVER:
rc = ptlrpc_recover_import(imp, data->ioc_inlbuf1);
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;
}