diff options
author | Marco Stornelli <marco.stornelli@gmail.com> | 2012-10-06 08:31:13 (GMT) |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-10-09 20:33:19 (GMT) |
commit | 3be2be0a32c18b0fd6d623cda63174a332ca0de1 (patch) | |
tree | 43a223182060de834768e0c1c1ca2602f19a8da4 | |
parent | 37185b33240870719b6b5913a46e6a441f1ae96f (diff) | |
download | linux-fsl-qoriq-3be2be0a32c18b0fd6d623cda63174a332ca0de1.tar.xz |
hostfs: drop vmtruncate
Removed vmtruncate.
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 9e45f65..3c423c7 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -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); |