Skip to contentSkip to conversation

f2fs: enable tuning of boost_zoned_gc_percent via sysfs

PATCH Applied yohan.joung 3 participants 3 messages Jun 25, 2025 – Jul 9, 2025 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 f2fs: enable tuning of boost_zoned_gc_percent via sysfs

to allow users to dynamically tune
the boost_zoned_gc_percent parameter

---
 fs/f2fs/gc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/f2fs/gc.h +2 -1
index 5c1eaf55e127..11fba7636af7 100644
@@ -194,6 +194,7 @@ 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);
 	return has_enough_invalid_blocks(sbi);
 }
Signature · 1 line
2.33.0
#2 lore raw
In reply to yohan.joung
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 7 lines · On Wed, 25 Jun 2025 09:13:35 +0900 you wrote:

to allow users to dynamically tune
the boost_zoned_gc_percent parameter

---
 fs/f2fs/gc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Here is the summary with links:
- [f2fs-dev,v4] f2fs: enable tuning of boost_zoned_gc_percent via sysfs

    https://git.kernel.org/jaegeuk/f2fs/c/956b81b3d41a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html