f2fs: skip GC if possible when checkpoint disabling
authorWeichao Guo <guoweichao@oppo.com>
Fri, 6 May 2022 16:28:14 +0000 (00:28 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 May 2022 16:30:38 +0000 (09:30 -0700)
commit2880f47b949f1f49e2d861ffbba91d57416be7d9
tree40d9a66aedc9e4e939044cda2be89116f26400aa
parent71419129625a50cfb5e3c5cc215948a3f98c806d
f2fs: skip GC if possible when checkpoint disabling

If the number of unusable blocks is not larger than
unusable capacity, we can skip GC when checkpoint
disabling.

Signed-off-by: Weichao Guo <guoweichao@oppo.com>
Signed-off-by: Chao Yu <chao@kernel.org>
[Jaegeuk Kim: Fix missing gc_mode assignment]
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c