lkml.org 
[lkml]   [2022]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 026/667] fs/ntfs3: Update i_ctime when xattr is added
    Date
    From: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

    commit 2d44667c306e7806848a3478820f87343feb5421 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    fs/ntfs3/xattr.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/fs/ntfs3/xattr.c
    +++ b/fs/ntfs3/xattr.c
    @@ -902,6 +902,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;
    }


    \
     
     \ /
      Last update: 2022-06-07 20:19    [W:2.049 / U:0.696 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site