public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/oom_kill: Insert newline for better readability
@ 2026-04-30 12:53 Nyunwoo Kim
  2026-04-30 13:04 ` Michal Hocko
  0 siblings, 1 reply; 2+ messages in thread
From: Nyunwoo Kim @ 2026-04-30 12:53 UTC (permalink / raw)
  To: Michal Hocko, David Rientjes, Shakeel Butt, Andrew Morton
  Cc: linux-mm, linux-kernel, Nyunwoo Kim

Insert a newline in check_panic_on_oom() for better readability.

Signed-off-by: Nyunwoo Kim <knw0507@naver.com>
---
This is my first patch and I am using it as practice to learn kernel
development. If this has wasted your time, I apologize; it was unintentional.
Thank you for your consideration.

 mm/oom_kill.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 5c6c95c169ee..86a08deaa697 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -1076,6 +1076,7 @@ static void check_panic_on_oom(struct oom_control *oc)
 {
 	if (likely(!sysctl_panic_on_oom))
 		return;
+
 	if (sysctl_panic_on_oom != 2) {
 		/*
 		 * panic_on_oom == 1 only affects CONSTRAINT_NONE, the kernel
@@ -1085,9 +1086,11 @@ static void check_panic_on_oom(struct oom_control *oc)
 		if (oc->constraint != CONSTRAINT_NONE)
 			return;
 	}
+
 	/* Do not panic for oom kills triggered by sysrq */
 	if (is_sysrq_oom(oc))
 		return;
+
 	dump_header(oc);
 	panic("Out of memory: %s panic_on_oom is enabled\n",
 		sysctl_panic_on_oom == 2 ? "compulsory" : "system-wide");
-- 
2.25.1


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

end of thread, other threads:[~2026-04-30 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30 12:53 [PATCH] mm/oom_kill: Insert newline for better readability Nyunwoo Kim
2026-04-30 13:04 ` Michal Hocko

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