Re: [PATCH 2/2] f2fs: fix to check return value of f2fs_gc_range

From: Chao Yu
Date: Sun Mar 03 2024 - 20:28:12 EST


On 2024/3/1 16:25, Zhiguo Niu wrote:
f2fs_gc_range may return error, so its caller
f2fs_allocate_pinning_section should determine whether
to do retry based on ist return value.

Also just do f2fs_gc_range when f2fs_allocate_new_section
return -EAGAIN, and check cp error case in f2fs_gc_range.

Signed-off-by: Zhiguo Niu <zhiguo.niu@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,