Commit 9bd6f13d authored by Nathan Scott's avatar Nathan Scott

[XFS] Fix missing inode atime update from the utime syscall.

SGI-PV: 949214
SGI-Modid: xfs-linux-melb:xfs-kern:25136a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 9fddaca2
...@@ -673,6 +673,8 @@ linvfs_setattr( ...@@ -673,6 +673,8 @@ linvfs_setattr(
if (ia_valid & ATTR_ATIME) { if (ia_valid & ATTR_ATIME) {
vattr.va_mask |= XFS_AT_ATIME; vattr.va_mask |= XFS_AT_ATIME;
vattr.va_atime = attr->ia_atime; vattr.va_atime = attr->ia_atime;
if (ia_valid & ATTR_ATIME_SET)
inode->i_atime = attr->ia_atime;
} }
if (ia_valid & ATTR_MTIME) { if (ia_valid & ATTR_MTIME) {
vattr.va_mask |= XFS_AT_MTIME; vattr.va_mask |= XFS_AT_MTIME;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment