Chao Yu 9fceaf8182 f2fs: fix to check return value of f2fs_reserve_new_block()
[ Upstream commit 956fa1ddc132e028f3b7d4cf17e6bfc8cb36c7fd ]

Let's check return value of f2fs_reserve_new_block() in do_recover_data()
rather than letting it fails silently.

Also refactoring check condition on return value of f2fs_reserve_new_block()
as below:
- trigger f2fs_bug_on() only for ENOSPC case;
- use do-while statement to avoid redundant codes;

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-23 08:25:00 +01:00
..
2019-05-08 21:23:11 -07:00
2018-09-12 13:07:10 -07:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00
2024-01-25 14:34:27 -08:00
2023-01-18 11:41:17 +01:00
2022-06-14 18:11:44 +02:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00