logfs: drop vmtruncate

Removed vmtruncate

Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Marco Stornelli 2012-12-15 11:55:42 +01:00 committed by Al Viro
parent d506848567
commit 5dfc2821e8
1 changed files with 8 additions and 2 deletions

View File

@ -1887,9 +1887,15 @@ int logfs_truncate(struct inode *inode, u64 target)
logfs_put_wblocks(sb, NULL, 1); logfs_put_wblocks(sb, NULL, 1);
} }
if (!err) if (!err) {
err = vmtruncate(inode, target); err = inode_newsize_ok(inode, target);
if (err)
goto out;
truncate_setsize(inode, target);
}
out:
/* I don't trust error recovery yet. */ /* I don't trust error recovery yet. */
WARN_ON(err); WARN_ON(err);
return err; return err;