mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
f2fs: fix an error return value in truncate_partial_data_page
This patch fix a error return value in truncate_partial_data_page Signed-off-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
1f02071358
commit
a78aaa2c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ static int truncate_partial_data_page(struct inode *inode, u64 from,
|
|||
|
||||
page = get_lock_data_page(inode, index, true);
|
||||
if (IS_ERR(page))
|
||||
return 0;
|
||||
return PTR_ERR(page) == -ENOENT ? 0 : PTR_ERR(page);
|
||||
truncate_out:
|
||||
f2fs_wait_on_page_writeback(page, DATA, true);
|
||||
zero_user(page, offset, PAGE_SIZE - offset);
|
||||
|
|
|
|||
Loading…
Reference in a new issue