f2fs: write checkpoint during FG_GC
authorByungki Lee <dominicus79@gmail.com>
Fri, 29 Apr 2022 20:29:53 +0000 (13:29 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 May 2022 17:18:12 +0000 (10:18 -0700)
commita9163b947ae8f7af7cb8d63606cd87b9facbfe74
treee59f6eace64116566839dc17e5104ce2a650719a
parentf2db71053dc0409fae785096ad19cce4c8a95af7
f2fs: write checkpoint during FG_GC

If there's not enough free sections each of which consistis of large segments,
we can hit no free section for upcoming section allocation. Let's reclaim some
prefree segments by writing checkpoints.

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