[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250625001336.1937-1-yohan.joung@sk.com>
Date: Wed, 25 Jun 2025 09:13:35 +0900
From: "yohan.joung" <yohan.joung@...com>
To: jaegeuk@...nel.org,
chao@...nel.org
Cc: linux-kernel@...r.kernel.org,
linux-f2fs-devel@...ts.sourceforge.net,
pilhyun.kim@...com,
"yohan.joung" <yohan.joung@...com>
Subject: [PATCH v4] f2fs: enable tuning of boost_zoned_gc_percent via sysfs
to allow users to dynamically tune
the boost_zoned_gc_percent parameter
Signed-off-by: yohan.joung <yohan.joung@...com>
---
fs/f2fs/gc.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h
index 5c1eaf55e127..11fba7636af7 100644
--- a/fs/f2fs/gc.h
+++ b/fs/f2fs/gc.h
@@ -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);
}
--
2.33.0
Powered by blists - more mailing lists