fs/ntfs3: Update i_ctime when xattr is added
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 22 Oct 2021 15:35:43 +0000 (18:35 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 23 Nov 2021 15:56:02 +0000 (18:56 +0300)
Ctime wasn't updated after setfacl command.
This commit fixes xfstest generic/307
Fixes: be71b5cba2e6 ("fs/ntfs3: Add attrib operations")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/xattr.c

index 56e774d0f56ae8c6982b042cd28cae67d115fe4d..af818300493dc8ac49f90fb672149f47db35151d 100644 (file)
@@ -995,6 +995,9 @@ set_new_fa:
        err = ntfs_set_ea(inode, name, name_len, value, size, flags);
 
 out:
+       inode->i_ctime = current_time(inode);
+       mark_inode_dirty(inode);
+
        return err;
 }