f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent
PATCH 1/1 f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent
to check the upper boundary when setting gc_boost_zoned_gc_percent
Signed-off-by yohan.joung <[email protected]>
--- fs/f2fs/sysfs.c | 7 +++++++ 1 file changed, 7 insertions(+)
fs/f2fs/sysfs.c +7 -0
@@ -628,6 +628,13 @@ static ssize_t __sbi_store(struct f2fs_attr *a,return count; } +if (!strcmp (a->attr.name,"gc_boost_zoned_gc_percent" )) { +if (t >100 ) +return -EINVAL ; + *ui = (unsigned int )t; +return count; + } +#ifdef CONFIG_F2FS_IOSTAT if (!strcmp (a->attr.name,"iostat_enable" )) { sbi->iostat_enable = !!t;
Signature · 1 line
2.33.0
Quoted 3 lines · yohan.joung
to check the upper boundary when setting
gc_boost_zoned_gc_percentSigned-off-by yohan.joung <[email protected]>
Fixes 9a481a1c16f4 ("f2fs: create gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent")
Reviewed-by Chao Yu <[email protected]>
Thanks,
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 6 lines · On Wed, 25 Jun 2025 09:14:07 +0900 you wrote:
to check the upper boundary when setting
gc_boost_zoned_gc_percentSigned-off-by yohan.joung <[email protected]>--- fs/f2fs/sysfs.c | 7 +++++++ 1 file changed, 7 insertions(+)
Here is the summary with links:
- [f2fs-dev] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent
https://git.kernel.org/jaegeuk/f2fs/c/10dcaa56ef93
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html