Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332960
b: refs/heads/master
c: 3be2be0
h: refs/heads/master
v: v3
  • Loading branch information
Marco Stornelli authored and Richard Weinberger committed Oct 9, 2012
1 parent a8a040c commit 5d9afcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 37185b33240870719b6b5913a46e6a441f1ae96f
refs/heads/master: 3be2be0a32c18b0fd6d623cda63174a332ca0de1
8 changes: 5 additions & 3 deletions trunk/fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,11 @@ int hostfs_setattr(struct dentry *dentry, struct iattr *attr)
attr->ia_size != i_size_read(inode)) {
int error;

error = vmtruncate(inode, attr->ia_size);
if (err)
return err;
error = inode_newsize_ok(inode, attr->ia_size);
if (error)
return error;

truncate_setsize(inode, attr->ia_size);
}

setattr_copy(inode, attr);
Expand Down

0 comments on commit 5d9afcf

Please sign in to comment.