From: Marco Stornelli Date: Sat, 15 Dec 2012 10:57:03 +0000 (+0100) Subject: ncpfs: drop vmtruncate X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3e7a806928ac2dcae1423d6879e4f7e86e59bb9e;p=openwrt%2Fstaging%2Fblogic.git ncpfs: drop vmtruncate Removed vmtruncate Signed-off-by: Marco Stornelli Signed-off-by: Al Viro --- diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index d7e9fe77188a..1acdad7fcec7 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c @@ -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); } }