mirror of https://gitee.com/openkylin/linux.git
LogFS: Fix typo in b6349ac8
Signed-off-by: Joern Engel <joern@logfs.org>
This commit is contained in:
parent
3272c8a57b
commit
2e531fa0d0
|
@ -1861,7 +1861,7 @@ int logfs_truncate(struct inode *inode, u64 target)
|
|||
size = target;
|
||||
|
||||
logfs_get_wblocks(sb, NULL, 1);
|
||||
err = __logfs_truncate(inode, target);
|
||||
err = __logfs_truncate(inode, size);
|
||||
if (!err)
|
||||
err = __logfs_write_inode(inode, 0);
|
||||
logfs_put_wblocks(sb, NULL, 1);
|
||||
|
|
Loading…
Reference in New Issue