Commit 3be2be0a authored by Marco Stornelli's avatar Marco Stornelli Committed by Richard Weinberger

hostfs: drop vmtruncate

Removed vmtruncate.
Signed-off-by: default avatarMarco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 37185b33
...@@ -848,9 +848,11 @@ int hostfs_setattr(struct dentry *dentry, struct iattr *attr) ...@@ -848,9 +848,11 @@ int hostfs_setattr(struct dentry *dentry, struct iattr *attr)
attr->ia_size != i_size_read(inode)) { attr->ia_size != i_size_read(inode)) {
int error; int error;
error = vmtruncate(inode, attr->ia_size); error = inode_newsize_ok(inode, attr->ia_size);
if (err) if (error)
return err; return error;
truncate_setsize(inode, attr->ia_size);
} }
setattr_copy(inode, attr); setattr_copy(inode, attr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment