summaryrefslogtreecommitdiffstats
path: root/fs/smbfs
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-02-24 00:12:35 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-02-24 00:12:35 +0000
commit482368b1a8e45430672c58c9a42e7d2004367126 (patch)
treece2a1a567d4d62dee7c2e71a46a99cf72cf1d606 /fs/smbfs
parente4d0251c6f56ab2e191afb70f80f382793e23f74 (diff)
Merge with 2.3.47. Guys, this is buggy as shit. You've been warned.
Diffstat (limited to 'fs/smbfs')
-rw-r--r--fs/smbfs/inode.c10
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;
}