Commit 0eda086d authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

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: c521a6ab ("f2fs: fix to limit gc_pin_file_threshold")
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 7633a738
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -797,7 +797,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
		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;