Whamcloud - gitweb
LU-1346 libcfs: cleanup libcfs primitive (linux-prim.h)
[fs/lustre-release.git] / lustre / osc / osc_request.c
index 241f9e0..0103e53 100644 (file)
@@ -2943,10 +2943,10 @@ static int osc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
         int err = 0;
         ENTRY;
 
-        if (!cfs_try_module_get(THIS_MODULE)) {
-                CERROR("Can't get module. Is it alive?");
-                return -EINVAL;
-        }
+       if (!try_module_get(THIS_MODULE)) {
+               CERROR("Can't get module. Is it alive?");
+               return -EINVAL;
+       }
         switch (cmd) {
         case OBD_IOC_LOV_GET_CONFIG: {
                 char *buf;
@@ -3017,7 +3017,7 @@ static int osc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                GOTO(out, err = -ENOTTY);
        }
 out:
-       cfs_module_put(THIS_MODULE);
+       module_put(THIS_MODULE);
        return err;
 }