]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
f2fs: fix to check sysfs filename w/ gc_pin_file_thresh correctly
authorChao Yu <chao@kernel.org>
Tue, 6 Jan 2026 06:31:17 +0000 (14:31 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 7 Jan 2026 03:17:09 +0000 (03:17 +0000)
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 <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/sysfs.c

index 91bc0544ba1fcc65358f6d45cffc9f514e8df8d1..cd22bfe75c4568e66c4a45c54392cdeb0ecf35a8 100644 (file)
@@ -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;