summaryrefslogtreecommitdiffstats
path: root/fs/hpfs/inode.c
diff options
context:
space:
mode:
authorMarco Stornelli <marco.stornelli@gmail.com>2012-12-15 11:53:50 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-12-20 18:40:00 -0500
commit70b31c4c88e253f4c2066367401118edab957614 (patch)
tree20aa6e37f7e5d7b9c82fbe58f3647bec90060a9b /fs/hpfs/inode.c
parentc8cf464bc5cfa689357796db2294c4b2474095fb (diff)
downloadlinux-stable-70b31c4c88e253f4c2066367401118edab957614.tar.gz
linux-stable-70b31c4c88e253f4c2066367401118edab957614.tar.bz2
linux-stable-70b31c4c88e253f4c2066367401118edab957614.zip
hpfs: drop vmtruncate
Removed vmtruncate Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hpfs/inode.c')
-rw-r--r--fs/hpfs/inode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c
index 804a9a842cbc..5dc06c837105 100644
--- a/fs/hpfs/inode.c
+++ b/fs/hpfs/inode.c
@@ -277,9 +277,12 @@ int hpfs_setattr(struct dentry *dentry, struct iattr *attr)
if ((attr->ia_valid & ATTR_SIZE) &&
attr->ia_size != i_size_read(inode)) {
- error = vmtruncate(inode, attr->ia_size);
+ error = inode_newsize_ok(inode, attr->ia_size);
if (error)
goto out_unlock;
+
+ truncate_setsize(inode, attr->ia_size);
+ hpfs_truncate(inode);
}
setattr_copy(inode, attr);