From: Chao Yu Date: Tue, 6 Jan 2026 06:31:17 +0000 (+0800) Subject: f2fs: fix to check sysfs filename w/ gc_pin_file_thresh correctly X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eda086de85e140f53c6123a4c00662f4e614ee4;p=thirdparty%2Fkernel%2Flinux.git f2fs: fix to check sysfs filename w/ gc_pin_file_thresh correctly Sysfs entry name is gc_pin_file_thresh instead of gc_pin_file_threshold, fix it. Cc: stable@kernel.org Fixes: c521a6ab4ad7 ("f2fs: fix to limit gc_pin_file_threshold") Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 91bc0544ba1f..cd22bfe75c45 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -797,7 +797,7 @@ out: return count; } - if (!strcmp(a->attr.name, "gc_pin_file_threshold")) { + if (!strcmp(a->attr.name, "gc_pin_file_thresh")) { if (t > MAX_GC_FAILED_PINNED_FILES) return -EINVAL; sbi->gc_pin_file_threshold = t;