Whamcloud - gitweb
LU-3386 lproc: improve osc/mdc "imports" connect data
[fs/lustre-release.git] / lustre / obdclass / obdo.c
index f35fb01..b7587d4 100644 (file)
@@ -239,7 +239,7 @@ void obdo_from_iattr(struct obdo *oa, struct iattr *attr, unsigned int ia_valid)
                oa->o_mode = attr->ia_mode;
                oa->o_valid |= OBD_MD_FLTYPE | OBD_MD_FLMODE;
                if (!in_group_p(oa->o_gid) &&
-                   !cfs_capable(CAP_FSETID))
+                   !cfs_capable(CFS_CAP_FSETID))
                        oa->o_mode &= ~S_ISGID;
        }
         if (ia_valid & ATTR_UID) {
@@ -288,7 +288,7 @@ void iattr_from_obdo(struct iattr *attr, struct obdo *oa, obd_flag valid)
                attr->ia_mode = (attr->ia_mode & S_IFMT)|(oa->o_mode & ~S_IFMT);
                attr->ia_valid |= ATTR_MODE;
                if (!in_group_p(oa->o_gid) &&
-                   !cfs_capable(CAP_FSETID))
+                   !cfs_capable(CFS_CAP_FSETID))
                        attr->ia_mode &= ~S_ISGID;
         }
         if (valid & OBD_MD_FLUID) {