ncpfs: drop vmtruncate

Removed vmtruncate

Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Marco Stornelli 2012-12-15 11:57:03 +01:00 committed by Al Viro
parent 7fc7cd00f6
commit 3e7a806928
1 changed files with 1 additions and 3 deletions

View File

@ -976,9 +976,7 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
goto out; goto out;
if (attr->ia_size != i_size_read(inode)) { if (attr->ia_size != i_size_read(inode)) {
result = vmtruncate(inode, attr->ia_size); truncate_setsize(inode, attr->ia_size);
if (result)
goto out;
mark_inode_dirty(inode); mark_inode_dirty(inode);
} }
} }