f2fs: do not use AT_SSR mode in FG_GC & high urgent BG_GC
authorWeichao Guo <guoweichao@oppo.com>
Wed, 17 Mar 2021 09:27:23 +0000 (17:27 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Mar 2021 01:20:50 +0000 (18:20 -0700)
commitac2d750b2043cbe10d42ac974e07b9876cddfff8
tree43cc6dd3d9606ce2fd9a3f93750336608e524187
parent5ac443e26a096429065349c640538101012ce40d
f2fs: do not use AT_SSR mode in FG_GC & high urgent BG_GC

AT_SSR mode is introduced by age threshold based GC for better
hot/cold data seperation and avoiding free segment cost. However,
LFS write mode is preferred in the scenario of foreground or high
urgent GC, which should be finished ASAP. Let's only use AT_SSR
in background GC and not high urgent GC modes.

Signed-off-by: Weichao Guo <guoweichao@oppo.com>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c
fs/f2fs/segment.c