Commit 2ac3c8c8 authored by sunshijie's avatar sunshijie Committed by Oleksiy Avramchenko
Browse files

UPSTREAM: 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: 283175904
Bug: 301198266

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]
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 2880f47b)
Signed-off-by: default avatarsunshijie <sunshijie@xiaomi.corp-partner.google.com>
Change-Id: I045578835d57640aff765c1a64eedb15ba7b8098
(cherry picked from commit acdef492)
parent 60c9755e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment