Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58586
b: refs/heads/master
c: 090ffaa
h: refs/heads/master
v: v3
  • Loading branch information
Wendy Cheng authored and Steven Whitehouse committed Jul 9, 2007
1 parent 5442399 commit 3f4ae31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 97d848365e603def43c69e160937f073bf9cf02e
refs/heads/master: 090ffaa55dacea774af9ee378d09e47fb7cea9ff
4 changes: 2 additions & 2 deletions trunk/fs/gfs2/ops_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,8 @@ static int setattr_size(struct inode *inode, struct iattr *attr)
}

error = gfs2_truncatei(ip, attr->ia_size);
if (error)
return error;
if (error && (inode->i_size != ip->i_di.di_size))
i_size_write(inode, ip->i_di.di_size);

return error;
}
Expand Down

0 comments on commit 3f4ae31

Please sign in to comment.