f2fs: fix to check upper boundary for gc_valid_thresh_ratio
authorChao Yu <chao@kernel.org>
Fri, 27 Jun 2025 02:38:17 +0000 (10:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 30 Jun 2025 16:44:52 +0000 (16:44 +0000)
commit7a96d1d73ce9de5041e891a623b722f900651561
tree80bf8079883532646eb457e4ec58c4796cbe531e
parent55fc364b430e3b234ecb9b6e1aa48b242a8663cc
f2fs: fix to check upper boundary for gc_valid_thresh_ratio

This patch adds missing upper boundary check while setting
gc_valid_thresh_ratio via sysfs.

Fixes: e791d00bd06c ("f2fs: add valid block ratio not to do excessive GC for one time GC")
Cc: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/sysfs.c