]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
f2fs: enable tuning of boost_zoned_gc_percent via sysfs
authoryohan.joung <yohan.joung@sk.com>
Wed, 25 Jun 2025 00:13:35 +0000 (09:13 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 30 Jun 2025 16:43:58 +0000 (16:43 +0000)
to allow users to dynamically tune
the boost_zoned_gc_percent parameter

Signed-off-by: yohan.joung <yohan.joung@sk.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.h

index 5c1eaf55e1277be21c57e21bb71381f9d800cbb5..11fba7636af7dae92cc91ebc9722e33ede836da0 100644 (file)
@@ -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);
 }