Whamcloud - gitweb
LU-5017 idl: clean up file attribute flags
[fs/lustre-release.git] / lustre / mdd / mdd_object.c
index ed3a67f..541efbf 100644 (file)
@@ -488,7 +488,7 @@ static int mdd_fix_attr(const struct lu_env *env, struct mdd_object *obj,
                        RETURN(-EPERM);
 
                if (!S_ISDIR(oattr->la_mode))
-                       la->la_flags &= ~LUSTRE_DIRSYNC_FL;
+                       la->la_flags &= ~(LUSTRE_DIRSYNC_FL | LUSTRE_TOPDIR_FL);
        }
 
        if (oattr->la_flags & (LUSTRE_IMMUTABLE_FL | LUSTRE_APPEND_FL) &&