Skip to content

Commit 956b81b

Browse files
yohanjoungJaegeuk Kim
authored andcommitted
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 <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 10dcaa5 commit 956b81b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/f2fs/gc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ static inline bool has_enough_invalid_blocks(struct f2fs_sb_info *sbi)
194194
static inline bool need_to_boost_gc(struct f2fs_sb_info *sbi)
195195
{
196196
if (f2fs_sb_has_blkzoned(sbi))
197-
return !has_enough_free_blocks(sbi, LIMIT_BOOST_ZONED_GC);
197+
return !has_enough_free_blocks(sbi,
198+
sbi->gc_thread->boost_zoned_gc_percent);
198199
return has_enough_invalid_blocks(sbi);
199200
}

0 commit comments

Comments
 (0)