f2fs: replace gc_urgent_high_remaining with gc_remaining_trials
authorYangtao Li <frank.li@vivo.com>
Tue, 25 Oct 2022 06:50:25 +0000 (14:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 2 Nov 2022 00:56:04 +0000 (17:56 -0700)
commite5a0db6a9e2eafe50e3ebc73a8285ae561e7d850
tree851799b999b3e3ac6cd18ff12646c3d4eea37b94
parenteebd36a408bb6fc5d7adbb4b8c6db993d0a850f8
f2fs: replace gc_urgent_high_remaining with gc_remaining_trials

The user can set the trial count limit for GC urgent and
idle mode with replaced gc_remaining_trials.. If GC thread gets
to the limit, the mode will turn back to GC normal mode finally.

It was applied only to GC_URGENT, while this patch expands it for
GC_IDLE.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/super.c
fs/f2fs/sysfs.c