Whamcloud - gitweb
LU-1346 libcfs: replace CFS_CAP_XXX with kernel definition
[fs/lustre-release.git] / libcfs / libcfs / lwt.c
index 48bf56b..83bea3f 100644 (file)
@@ -63,8 +63,8 @@ lwt_lookup_string (int *size, char *knl_ptr,
          * trying to determine the string length, so we're trusting our
          * caller... */
 
-        if (!cfs_capable(CFS_CAP_SYS_ADMIN))
-                return (-EPERM);
+       if (!cfs_capable(CAP_SYS_ADMIN))
+               return (-EPERM);
 
         if (user_size > 0 && 
             maxsize > user_size)
@@ -94,8 +94,8 @@ lwt_control (int enable, int clear)
         int          i;
         int          j;
 
-        if (!cfs_capable(CFS_CAP_SYS_ADMIN))
-                return (-EPERM);
+       if (!cfs_capable(CAP_SYS_ADMIN))
+               return (-EPERM);
 
        if (!enable) {
                LWT_EVENT(0,0,0,0);
@@ -141,7 +141,7 @@ lwt_snapshot(cfs_cycles_t *now, int *ncpu, int *total_size,
        int          i;
        int          j;
 
-       if (!cfs_capable(CFS_CAP_SYS_ADMIN))
+       if (!cfs_capable(CAP_SYS_ADMIN))
                return (-EPERM);
 
        *ncpu = num_online_cpus();