Skip to content

Commit 8c0b511

Browse files
committed
[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 <[email protected]> Signed-off-by: Nathan Scott <[email protected]>
1 parent 58829e4 commit 8c0b511

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/xfs/linux-2.6/xfs_iops.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,7 @@ xfs_vn_setattr(
673673
if (ia_valid & ATTR_ATIME) {
674674
vattr.va_mask |= XFS_AT_ATIME;
675675
vattr.va_atime = attr->ia_atime;
676-
if (ia_valid & ATTR_ATIME_SET)
677-
inode->i_atime = attr->ia_atime;
676+
inode->i_atime = attr->ia_atime;
678677
}
679678
if (ia_valid & ATTR_MTIME) {
680679
vattr.va_mask |= XFS_AT_MTIME;

0 commit comments

Comments
 (0)