diff options
author | Nathan Scott <nathans@sgi.com> | 2006-04-11 05:12:45 (GMT) |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-04-11 05:12:45 (GMT) |
commit | 8c0b5113a55c698f3190ec85925815640f1c2049 (patch) | |
tree | 99f0d35a0a69a1b7fa870fed3f0c2fc22c995489 /fs/xfs | |
parent | 58829e490ee805f1c8b3009abc90e2a1a7a0d278 (diff) | |
download | linux-fsl-qoriq-8c0b5113a55c698f3190ec85925815640f1c2049.tar.xz |
[XFS] Fix utime(2) in the case that no times parameter was passed in.
SGI-PV: 949858
SGI-Modid: xfs-linux-melb:xfs-kern:25717a
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 1492373..2e2e275 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c @@ -673,8 +673,7 @@ xfs_vn_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; + inode->i_atime = attr->ia_atime; } if (ia_valid & ATTR_MTIME) { vattr.va_mask |= XFS_AT_MTIME; |