]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Feb 2026 15:31:35 +0000 (16:31 +0100)
commit 0eda086de85e140f53c6123a4c00662f4e614ee4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/sysfs.c

index 5685b454bfd12d1dad5a5b0599bc7553b4ac5a42..42f506a0141aa74e693743b29710e573b0bbdfa6 100644 (file)
@@ -749,7 +749,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;