diff options
author | Nathan Scott <nathans@sgi.com> | 2006-02-07 09:27:44 (GMT) |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-02-07 09:27:44 (GMT) |
commit | 9bd6f13dfd1dfb2e8f20df50581ebe7344ba97bd (patch) | |
tree | 9c726f8831ade876012136a626e2e7e9ad052de4 /fs | |
parent | 9fddaca2293d768eb21ea115e5eedec7f1c13c1c (diff) | |
download | linux-fsl-qoriq-9bd6f13dfd1dfb2e8f20df50581ebe7344ba97bd.tar.xz |
[XFS] Fix missing inode atime update from the utime syscall.
SGI-PV: 949214
SGI-Modid: xfs-linux-melb:xfs-kern:25136a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index eda7919..d7f6f2d 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c @@ -673,6 +673,8 @@ linvfs_setattr( if (ia_valid & ATTR_ATIME) { vattr.va_mask |= XFS_AT_ATIME; vattr.va_atime = attr->ia_atime; + if (ia_valid & ATTR_ATIME_SET) + inode->i_atime = attr->ia_atime; } if (ia_valid & ATTR_MTIME) { vattr.va_mask |= XFS_AT_MTIME; |