ncpfs: drop vmtruncate
authorMarco Stornelli <marco.stornelli@gmail.com>
Sat, 15 Dec 2012 10:57:03 +0000 (11:57 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 20 Dec 2012 23:40:54 +0000 (18:40 -0500)
Removed vmtruncate

Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ncpfs/inode.c

index d7e9fe7..1acdad7 100644 (file)
@@ -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);
                }
        }