Skip to content

Commit

Permalink
ocfs2: update inode ctime in ocfs2_fileattr_set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Su Yue authored and Andrew Morton committed Apr 26, 2024
1 parent 30dd347 commit c9abe09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ocfs2/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c9abe09

Please sign in to comment.