]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Apr 2006 20:16:06 +0000 (13:16 -0700)
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 d7f6f2d8ac8ec1c3b8f3185d3e18e958f8dc65a6..43808e22cc64648026480af6508031f87ecf36c4 100644 (file)
@@ -673,8 +673,7 @@ 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;
+               inode->i_atime = attr->ia_atime;
        }
        if (ia_valid & ATTR_MTIME) {
                vattr.va_mask |= XFS_AT_MTIME;