Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12210
b: refs/heads/master
c: 374e2ac
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sandeen authored and Nathan Scott committed Nov 2, 2005
1 parent 938d7d3 commit 5ba91e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 4750ddb0ba781006f149fdd87bbe997cb8c07e2e
refs/heads/master: 374e2ac33724d1dd432b6c75f9b1adf715c2add7
4 changes: 3 additions & 1 deletion trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,10 @@ xfs_setattr(
*/
if (mask & XFS_AT_SIZE) {
code = 0;
if (vap->va_size > ip->i_d.di_size)
if ((vap->va_size > ip->i_d.di_size) &&
(flags & ATTR_NOSIZETOK) == 0) {
code = xfs_igrow_start(ip, vap->va_size, credp);
}
xfs_iunlock(ip, XFS_ILOCK_EXCL);
if (!code)
code = xfs_itruncate_data(ip, vap->va_size);
Expand Down

0 comments on commit 5ba91e6

Please sign in to comment.