Whamcloud - gitweb
LU-1346 libcfs: cleanup libcfs primitive (linux-prim.h)
[fs/lustre-release.git] / lustre / ptlrpc / lproc_ptlrpc.c
index e2ba1ee..da5ff2a 100644 (file)
@@ -1240,7 +1240,7 @@ int lprocfs_wr_evict_client(struct file *file, const char *buffer,
                 goto out;
         }
         tmpbuf = cfs_firststr(kbuf, min_t(unsigned long, BUFLEN - 1, count));
-       class_incref(obd, __FUNCTION__, cfs_current());
+       class_incref(obd, __FUNCTION__, current);
 
         if (strncmp(tmpbuf, "nid:", 4) == 0)
                 obd_export_evict_by_nid(obd, tmpbuf + 4);
@@ -1249,7 +1249,7 @@ int lprocfs_wr_evict_client(struct file *file, const char *buffer,
         else
                 obd_export_evict_by_uuid(obd, tmpbuf);
 
-       class_decref(obd, __FUNCTION__, cfs_current());
+       class_decref(obd, __FUNCTION__, current);
 
 out:
         OBD_FREE(kbuf, BUFLEN);