Skip to contentSkip to conversation

mm-memory-failure-move-sysctl-register-in-memory_failure_init.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 9, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: memory-failure: move sysctl register in memory_failure_init()
has been removed from the -mm tree. Its filename was
mm-memory-failure-move-sysctl-register-in-memory_failure_init.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Kefeng Wang <[email protected]>
Subject: mm: memory-failure: move sysctl register in memory_failure_init()
Date: Mon, 8 May 2023 19:41:28 +0800

There is already a memory_failure_init(), don't add a new initcall, move register_sysctl_init() into it to cleanup a bit.

---

 mm/memory-failure.c |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-memory-failure-move-sysctl-register-in-memory_failure_init +2 -9
@@ -123,7 +123,6 @@ const struct attribute_group memory_fail
 	.attrs = memory_failure_attr,
 };
 
-#ifdef CONFIG_SYSCTL
 static struct ctl_table memory_failure_table[] = {
 	{
 		.procname	= "memory_failure_early_kill",
@@ -146,14 +145,6 @@ static struct ctl_table memory_failure_t
 	{ }
 };
 
-static int __init memory_failure_sysctl_init(void)
-{
-	register_sysctl_init("vm", memory_failure_table);
-	return 0;
-}
-late_initcall(memory_failure_sysctl_init);
-#endif /* CONFIG_SYSCTL */
-
 /*
  * Return values:
  *   1:   the page is dissolved (if needed) and taken off from buddy,
@@ -2441,6 +2432,8 @@ static int __init memory_failure_init(vo
 		INIT_WORK(&mf_cpu->work, memory_failure_work_func);
 	}
 
+	register_sysctl_init("vm", memory_failure_table);
+
 	return 0;
 }
 core_initcall(memory_failure_init);

_

Patches currently in -mm which might be from [email protected] are