diff options
Diffstat (limited to 'fs/smbfs/inode.c')
-rw-r--r-- | fs/smbfs/inode.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index c071263ff..9a7560aa4 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c @@ -483,15 +483,7 @@ dentry->d_parent->d_name.name, dentry->d_name.name, attr->ia_size); if (error) goto out; - /* - * We don't implement an i_op->truncate operation, - * so we have to update the page cache here. - */ - if (attr->ia_size < inode->i_size) - { - truncate_inode_pages(inode, attr->ia_size); - inode->i_size = attr->ia_size; - } + vmtruncate(inode, attr->ia_size); refresh = 1; } |