mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
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@sk.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
10dcaa56ef
commit
956b81b3d4
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user