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:
parent
7fc7cd00f6
commit
3e7a806928
|
@ -976,9 +976,7 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
|
|||
goto out;
|
||||
|
||||
if (attr->ia_size != i_size_read(inode)) {
|
||||
result = vmtruncate(inode, attr->ia_size);
|
||||
if (result)
|
||||
goto out;
|
||||
truncate_setsize(inode, attr->ia_size);
|
||||
mark_inode_dirty(inode);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue