- rc = lustre_posix_acl_create_masq(entry, mode, entry_count);
- if (rc < 0)
- RETURN(rc);
-
- /* part of ACL went into i_mode */
- if (*mode != old) {
- struct mdd_thread_info *info = mdd_env_info(env);
- struct lu_attr *pattr = &info->mti_pattr;
-
- /* mode was initialized within object creation,
- * so we need explict ->attr_set() to update it */
- pattr->la_valid = LA_MODE;
- pattr->la_mode = *mode;
- rc2 = mdo_attr_set(env, obj, pattr, handle, BYPASS_CAPA);
- if (rc2 < 0)
- rc = rc2;
- }