f2fs: refactor f2fs_gc to call checkpoint in urgent condition
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 10 Apr 2023 21:48:50 +0000 (14:48 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 18 Apr 2023 16:05:43 +0000 (09:05 -0700)
commit2d3f197bad9796f81bc0c0c41f571b0e418f266f
tree098edb8e343018184f7a7f9da8b7d14c11a3693b
parent635a52da8605e5d300ec8c18fdba8d6f8491755d
f2fs: refactor f2fs_gc to call checkpoint in urgent condition

The major change is to call checkpoint, if there's not enough space while having
some prefree segments in FG_GC case.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c