fs/ntfs3: Update i_ctime when xattr is added

Ctime wasn't updated after setfacl command.
This commit fixes xfstest generic/307
Fixes: be71b5cba2 ("fs/ntfs3: Add attrib operations")

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
Konstantin Komarov 2021-10-22 18:35:43 +03:00
parent 87e21c99ba
commit 2d44667c30
No known key found for this signature in database
GPG key ID: A9B0331F832407B6

View file

@ -995,6 +995,9 @@ static noinline int ntfs_setxattr(const struct xattr_handler *handler,
err = ntfs_set_ea(inode, name, name_len, value, size, flags);
out:
inode->i_ctime = current_time(inode);
mark_inode_dirty(inode);
return err;
}