mirror of
https://github.com/torvalds/linux
synced 2024-10-15 07:47:34 +00:00
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>
This commit is contained in:
parent
30dd3478c3
commit
c9abe09986
|
@ -125,6 +125,7 @@ int ocfs2_fileattr_set(struct mnt_idmap *idmap,
|
||||||
|
|
||||||
ocfs2_inode->ip_attr = flags;
|
ocfs2_inode->ip_attr = flags;
|
||||||
ocfs2_set_inode_flags(inode);
|
ocfs2_set_inode_flags(inode);
|
||||||
|
inode_set_ctime_current(inode);
|
||||||
|
|
||||||
status = ocfs2_mark_inode_dirty(handle, inode, bh);
|
status = ocfs2_mark_inode_dirty(handle, inode, bh);
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
|
|
Loading…
Reference in a new issue