From: Nathan Scott Date: Tue, 11 Apr 2006 05:12:45 +0000 (+1000) Subject: [XFS] Fix utime(2) in the case that no times parameter was passed in. X-Git-Tag: v2.6.17-rc2~279 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8c0b5113a55c698f3190ec85925815640f1c2049;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Nathan Scott --- diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 149237304fb..2e2e275c786 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;