Skip to content

Commit b72d775

Browse files
chaseyugregkh
authored andcommitted
f2fs: fix to check sysfs filename w/ gc_pin_file_thresh correctly
commit 0eda086 upstream. Sysfs entry name is gc_pin_file_thresh instead of gc_pin_file_threshold, fix it. Cc: stable@kernel.org Fixes: c521a6a ("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>
1 parent aeb7060 commit b72d775

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/f2fs/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
732732
return count;
733733
}
734734

735-
if (!strcmp(a->attr.name, "gc_pin_file_threshold")) {
735+
if (!strcmp(a->attr.name, "gc_pin_file_thresh")) {
736736
if (t > MAX_GC_FAILED_PINNED_FILES)
737737
return -EINVAL;
738738
sbi->gc_pin_file_threshold = t;

0 commit comments

Comments
 (0)