]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40ae07a0e10a0c9f213e2f269d6bb074c103b05e
tree43cc6dd3d9606ce2fd9a3f93750336608e524187
parentbb4855ad2f3bc9c7257a51d61672e61d14eb2c3c
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