Skip to content

Commit

Permalink
fs/ntfs3: Update i_ctime when xattr is added
Browse files Browse the repository at this point in the history
commit 2d44667 upstream.

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

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
aalexandrovich authored and gregkh committed Jun 9, 2022
1 parent d8be98a commit 79f44f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ntfs3/xattr.c
Expand Up @@ -902,6 +902,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;
}

Expand Down

0 comments on commit 79f44f0

Please sign in to comment.