mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 10:46:12 +07:00
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:
parent
d506848567
commit
5dfc2821e8
@ -1887,9 +1887,15 @@ int logfs_truncate(struct inode *inode, u64 target)
|
||||
logfs_put_wblocks(sb, NULL, 1);
|
||||
}
|
||||
|
||||
if (!err)
|
||||
err = vmtruncate(inode, target);
|
||||
if (!err) {
|
||||
err = inode_newsize_ok(inode, target);
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
truncate_setsize(inode, target);
|
||||
}
|
||||
|
||||
out:
|
||||
/* I don't trust error recovery yet. */
|
||||
WARN_ON(err);
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user