mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
kill spurious reference to vmtruncate
Lots of filesystems calls vmtruncate despite not implementing the old ->truncate method. Switch them to use simple_setsize and add some comments about the truncate code where it seems fitting. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Nick Piggin <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
7bb46a6734
commit
15c6fd9786
10 changed files with 37 additions and 22 deletions
|
|
@ -714,7 +714,7 @@ smb_notify_change(struct dentry *dentry, struct iattr *attr)
|
|||
error = server->ops->truncate(inode, attr->ia_size);
|
||||
if (error)
|
||||
goto out;
|
||||
error = vmtruncate(inode, attr->ia_size);
|
||||
error = simple_setsize(inode, attr->ia_size);
|
||||
if (error)
|
||||
goto out;
|
||||
refresh = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue