Commit 7275c3b9 authored by Weichao Guo's avatar Weichao Guo Committed by qixiaoyu1
Browse files

BACKPORT: 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.

Bug: 278486610
Bug: 286324986
Signed-off-by: default avatarWeichao Guo <guoweichao@oppo.com>
Signed-off-by: default avatarChao Yu <chao@kernel.org>
[Jaegeuk Kim: Fix missing gc_mode assignment]
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 2880f47b)
[ qixiaoyu1: Resolved minor conflict in fs/f2fs/super.c ]
Change-Id: Ic37debb3fbb9d863cb1b0f539cc992dd08ad9f77
parent fc239f5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment