diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 40437fa51cea13c2e0b01b0c8a96bde4d849d163..325bd3e9ee3574742a5ba5b0f7b8f788557c6deb 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -34,6 +34,7 @@ Details : Remove 2.5.0 check from quota_check.c, quota_ctl.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 diff --git a/lustre/mgc/mgc_request.c b/lustre/mgc/mgc_request.c index cfe7c8c29bb663c4a8a459cee8840225c5a66f37..ee8cd3420d86cdf8c2124f954360ba13d8a5be8a 100644 --- a/lustre/mgc/mgc_request.c +++ b/lustre/mgc/mgc_request.c @@ -675,14 +675,10 @@ static int mgc_iocontrol(unsigned int cmd, struct obd_export *exp, int len, 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: { @@ -716,11 +712,7 @@ static int mgc_iocontrol(unsigned int cmd, struct obd_export *exp, int len, 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; }