linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent
@ 2025-06-25  0:14 yohan.joung
  2025-06-25  2:22 ` Chao Yu
  2025-07-09 18:10 ` [f2fs-dev] " patchwork-bot+f2fs
  0 siblings, 2 replies; 3+ messages in thread
From: yohan.joung @ 2025-06-25  0:14 UTC (permalink / raw)
  To: jaegeuk, chao; +Cc: linux-kernel, linux-f2fs-devel, pilhyun.kim, yohan.joung

to check the upper boundary when setting gc_boost_zoned_gc_percent

Signed-off-by: yohan.joung <yohan.joung@sk.com>
---
 fs/f2fs/sysfs.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index 51be7ffb38c5..2b5c35ce7b8c 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -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;
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent
  2025-06-25  0:14 [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent yohan.joung
@ 2025-06-25  2:22 ` Chao Yu
  2025-07-09 18:10 ` [f2fs-dev] " patchwork-bot+f2fs
  1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2025-06-25  2:22 UTC (permalink / raw)
  To: yohan.joung, jaegeuk; +Cc: chao, linux-kernel, linux-f2fs-devel, pilhyun.kim

On 6/25/25 08:14, yohan.joung wrote:
> to check the upper boundary when setting gc_boost_zoned_gc_percent
> 
> Signed-off-by: yohan.joung <yohan.joung@sk.com>

Fixes: 9a481a1c16f4 ("f2fs: create gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent")

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [f2fs-dev] [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent
  2025-06-25  0:14 [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent yohan.joung
  2025-06-25  2:22 ` Chao Yu
@ 2025-07-09 18:10 ` patchwork-bot+f2fs
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+f2fs @ 2025-07-09 18:10 UTC (permalink / raw)
  To: yohan.joung; +Cc: jaegeuk, chao, pilhyun.kim, linux-kernel, linux-f2fs-devel

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:

On Wed, 25 Jun 2025 09:14:07 +0900 you wrote:
> to check the upper boundary when setting gc_boost_zoned_gc_percent
> 
> Signed-off-by: yohan.joung <yohan.joung@sk.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-09 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25  0:14 [PATCH] f2fs: fix to check upper boundary for value of gc_boost_zoned_gc_percent yohan.joung
2025-06-25  2:22 ` Chao Yu
2025-07-09 18:10 ` [f2fs-dev] " patchwork-bot+f2fs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).