]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: set default valid_thresh_ratio to 80 for zoned devices
authorDaeho Jeong <daehojeong@google.com>
Tue, 7 Oct 2025 16:46:14 +0000 (09:46 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 24 Oct 2025 21:23:55 +0000 (21:23 +0000)
commit81464df36094340395cadc9235e24eb4defa8c43
tree89905a738e95e998a94c8bf672a2f043b34c6c8c
parente462fc48ceb8224811c3224650afed05cb7f0872
f2fs: set default valid_thresh_ratio to 80 for zoned devices

Zoned storage devices provide marginal over-capacity space, typically
around 10%, for filesystem level storage control.

By utilizing this extra capacity, we can safely reduce the default
'valid_thresh_ratio' to 80. This action helps to significantly prevent
excessive garbage collection (GC) and the resulting power consumption,
as the filesystem becomes less aggressive about cleaning segments
that still hold a high percentage of valid data.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.h