Unverified Commit e31195a3 authored by Konstantin Komarov's avatar Konstantin Komarov
Browse files

fs/ntfs3: Fix incorrect if in ntfs_set_acl_ex



We need to update ctime too with mode.
Fixes xfstest generic/307

Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
parent 0e8235d2
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -638,11 +638,10 @@ static noinline int ntfs_set_acl_ex(struct user_namespace *mnt_userns,
		err = 0; /* Removing non existed xattr. */
	if (!err) {
		set_cached_acl(inode, type, acl);
		if (inode->i_mode != mode) {
		inode->i_mode = mode;
		inode->i_ctime = current_time(inode);
		mark_inode_dirty(inode);
	}
	}

out:
	kfree(value);