diff options
author | Su Yue <glass.su@suse.com> | 2024-03-18 19:56:09 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-04-25 21:07:01 -0700 |
commit | c9abe099865b2d0df66346657b76922d8efd43e4 (patch) | |
tree | 2087920956dfbfdd476e79219bbea3a9498d5501 /fs/ocfs2 | |
parent | 30dd3478c3cd7d01cc5afc4952e885ba4eefb730 (diff) | |
download | linux-stable-c9abe099865b2d0df66346657b76922d8efd43e4.tar.gz linux-stable-c9abe099865b2d0df66346657b76922d8efd43e4.tar.bz2 linux-stable-c9abe099865b2d0df66346657b76922d8efd43e4.zip |
ocfs2: update inode ctime in ocfs2_fileattr_set
inode ctime should be updated if ocfs2_fileattr_set is called.
Link: https://lkml.kernel.org/r/20240318115609.3194-1-l@damenly.org
Signed-off-by: Su Yue <glass.su@suse.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c index b1550ba73f96..71beef7f8a60 100644 --- a/fs/ocfs2/ioctl.c +++ b/fs/ocfs2/ioctl.c @@ -125,6 +125,7 @@ int ocfs2_fileattr_set(struct mnt_idmap *idmap, ocfs2_inode->ip_attr = flags; ocfs2_set_inode_flags(inode); + inode_set_ctime_current(inode); status = ocfs2_mark_inode_dirty(handle, inode, bh); if (status < 0) |