f2fs: Fix over-estimating free section during FG GC
authorYonggil Song <yonggil.song@samsung.com>
Fri, 12 May 2023 04:16:10 +0000 (13:16 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 12 Jun 2023 20:04:07 +0000 (13:04 -0700)
commit36ded4c106db2434754c9bdcabdbdb52117be35f
tree944f1f94112774801ff57dfc7b686d41f172f518
parent04abeb699ddce800837c4039ea1cc7d4d139bb36
f2fs: Fix over-estimating free section during FG GC

There was a bug that finishing FG GC unconditionally because free sections
are over-estimated after checkpoint in FG GC.
This patch initializes sec_freed by every checkpoint in FG GC.

Signed-off-by: Yonggil Song <yonggil.song@samsung.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c