Whamcloud - gitweb
LU-9859 libcfs: discard cfs_cap_t, use kernel_cap_t
[fs/lustre-release.git] / lustre / mdt / mdt_coordinator.c
index 1420cb1..2dbcebc 100644 (file)
@@ -922,8 +922,6 @@ static int mdt_hsm_pending_restore(struct mdt_thread_info *mti)
 
 int hsm_init_ucred(struct lu_ucred *uc)
 {
-       kernel_cap_t kcap = cap_combine(CAP_FS_SET, CAP_NFSD_SET);
-
        ENTRY;
        uc->uc_valid = UCRED_OLD;
        uc->uc_o_uid = 0;
@@ -936,7 +934,7 @@ int hsm_init_ucred(struct lu_ucred *uc)
        uc->uc_fsgid = 0;
        uc->uc_suppgids[0] = -1;
        uc->uc_suppgids[1] = -1;
-       uc->uc_cap = kcap.cap[0];
+       uc->uc_cap = cap_combine(CAP_FS_SET, CAP_NFSD_SET);
        uc->uc_umask = 0777;
        uc->uc_ginfo = NULL;
        uc->uc_identity = NULL;