mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] f2fs: fix to correct invalid batched_trim_sections node
@ 2022-10-21 15:38 Yangtao Li
  2022-10-21 15:38 ` [PATCH 2/2] f2fs: remove " Yangtao Li
  0 siblings, 1 reply; 3+ messages in thread
From: Yangtao Li @ 2022-10-21 15:38 UTC (permalink / raw)
  To: jaegeuk, chao; +Cc: linux-f2fs-devel, linux-kernel, Yangtao Li

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@vivo.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-25  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-21 15:38 [PATCH 1/2] f2fs: fix to correct invalid batched_trim_sections node Yangtao Li
2022-10-21 15:38 ` [PATCH 2/2] f2fs: remove " Yangtao Li
2022-10-25  2:55   ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®