[XFS] Fix utime(2) in the case that no times parameter was passed in.
authorNathan Scott <nathans@sgi.com>
Tue, 11 Apr 2006 05:12:45 +0000 (15:12 +1000)
committerNathan Scott <nathans@sgi.com>
Tue, 11 Apr 2006 05:12:45 +0000 (15:12 +1000)
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>
fs/xfs/linux-2.6/xfs_iops.c

index 149237304fb6b59e457037e06ae2325ee17193ba..2e2e275c786f2e98f617ef7d720e1b0b617a4643 100644 (file)
@@ -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;