[PATCH 1/2] f2fs: fix to correct invalid batched_trim_sections node
From: Yangtao Li
Date: Fri Oct 21 2022 - 11:42:23 EST
commit 377224c47118("f2fs: don't split checkpoint in fstrim") obsolete
batch mode and related sysfs entry, but use wrong name.
Let's fix it to right name.
Signed-off-by: Yangtao Li <frank.li@xxxxxxxx>
---
fs/f2fs/sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index df27afd71ef4..3005e2783a25 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -488,7 +488,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
return -EINVAL;
}
- if (!strcmp(a->attr.name, "trim_sections"))
+ if (!strcmp(a->attr.name, "batched_trim_sections"))
return -EINVAL;
if (!strcmp(a->attr.name, "gc_urgent")) {
--
2.25.1