Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Chao Yu and committed by
Jaegeuk Kim
0eda086d 7633a738

+1 -1
+1 -1
fs/f2fs/sysfs.c
··· 797 797 return count; 798 798 } 799 799 800 - if (!strcmp(a->attr.name, "gc_pin_file_threshold")) { 800 + if (!strcmp(a->attr.name, "gc_pin_file_thresh")) { 801 801 if (t > MAX_GC_FAILED_PINNED_FILES) 802 802 return -EINVAL; 803 803 sbi->gc_pin_file_threshold = t;