The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] f2fs: enable tuning of boost_zoned_gc_percent via sysfs
@ 2025-05-23  0:21 yohan.joung
  2025-05-23  2:19 ` Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: yohan.joung @ 2025-05-23  0:21 UTC (permalink / raw)
  To: jaegeuk, chao, daehojeong
  Cc: linux-kernel, linux-f2fs-devel, pilhyun.kim, yohan.joung

to allow users to dynamically tune
the boost_zoned_gc_percent parameter

Signed-off-by: yohan.joung <yohan.joung@sk.com>
---
 fs/f2fs/gc.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h
index 5c1eaf55e127..f9ff68dc2bcc 100644
--- a/fs/f2fs/gc.h
+++ b/fs/f2fs/gc.h
@@ -194,6 +194,8 @@ static inline bool has_enough_invalid_blocks(struct f2fs_sb_info *sbi)
 static inline bool need_to_boost_gc(struct f2fs_sb_info *sbi)
 {
 	if (f2fs_sb_has_blkzoned(sbi))
-		return !has_enough_free_blocks(sbi, LIMIT_BOOST_ZONED_GC);
+		return !has_enough_free_blocks(sbi,
+			sbi->gc_thread->boost_zoned_gc_percent < 100
+			? sbi->gc_thread->boost_zoned_gc_percent : 100);
 	return has_enough_invalid_blocks(sbi);
 }
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-23  2:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23  0:21 [PATCH] f2fs: enable tuning of boost_zoned_gc_percent via sysfs yohan.joung
2025-05-23  2:19 ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox