f2fs: fix gc mode when gc_urgent_high_remaining is 1
authorYangtao Li <frank.li@vivo.com>
Tue, 25 Oct 2022 06:50:24 +0000 (14:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 2 Nov 2022 00:56:02 +0000 (17:56 -0700)
commit6359a1aaca527311b7145ec6eb16890a5ddf5214
tree0e2f75c3707f2a15e3a8c384d43975e23dab9476
parent3688cbe39b7a9ef3feb73234fb351de33fd1da52
f2fs: fix gc mode when gc_urgent_high_remaining is 1

Under the current logic, when gc_urgent_high_remaining is set to 1,
the mode will be switched to normal at the beginning, instead of
running in gc_urgent mode.

Let's switch the gc mode back to normal when the gc ends.

Fixes: 265576181b4a ("f2fs: remove gc_urgent_high_limited for cleanup")
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c