Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255123
b: refs/heads/master
c: 681b120
h: refs/heads/master
i:
  255121: 0b6f04e
  255119: b710200
v: v3
  • Loading branch information
Christoph Hellwig committed Jul 8, 2011
1 parent 7b7a631 commit da99978
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c4ed4243c40f97ed5b7b121777bbbc6aeaa722f0
refs/heads/master: 681b120018e3c7e2680c93e8188c5ee34215df2f
17 changes: 9 additions & 8 deletions trunk/fs/xfs/linux-2.6/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,14 +773,15 @@ xfs_setattr_size(
*/
if (iattr->ia_size == 0 &&
ip->i_size == 0 && ip->i_d.di_nextents == 0) {
xfs_iunlock(ip, XFS_ILOCK_EXCL);
lock_flags &= ~XFS_ILOCK_EXCL;
if (mask & ATTR_CTIME) {
inode->i_mtime = inode->i_ctime =
current_fs_time(inode->i_sb);
xfs_mark_inode_dirty_sync(ip);
}
goto out_unlock;
if (!(mask & (ATTR_CTIME|ATTR_MTIME)))
goto out_unlock;

/*
* Use the regular setattr path to update the timestamps.
*/
xfs_iunlock(ip, lock_flags);
iattr->ia_valid &= ~ATTR_SIZE;
return xfs_setattr_nonsize(ip, iattr, 0);
}

/*
Expand Down

0 comments on commit da99978

Please sign in to comment.