From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with SMTP id 7394C6B01E3 for ; Tue, 8 Jun 2010 07:42:08 -0400 (EDT) Received: from m4.gw.fujitsu.co.jp ([10.0.50.74]) by fgwmail6.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o58Bg6Rh012501 for (envelope-from kosaki.motohiro@jp.fujitsu.com); Tue, 8 Jun 2010 20:42:06 +0900 Received: from smail (m4 [127.0.0.1]) by outgoing.m4.gw.fujitsu.co.jp (Postfix) with ESMTP id 3673845DE7A for ; Tue, 8 Jun 2010 20:42:05 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (s4.gw.fujitsu.co.jp [10.0.50.94]) by m4.gw.fujitsu.co.jp (Postfix) with ESMTP id 086C945DE80 for ; Tue, 8 Jun 2010 20:42:05 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id 99681E3800B for ; Tue, 8 Jun 2010 20:42:04 +0900 (JST) Received: from m106.s.css.fujitsu.com (m106.s.css.fujitsu.com [10.249.87.106]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id CC811E38014 for ; Tue, 8 Jun 2010 20:42:02 +0900 (JST) From: KOSAKI Motohiro Subject: Re: [patch 14/18] oom: move sysctl declarations to oom.h In-Reply-To: References: Message-Id: <20100608203733.7678.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit Date: Tue, 8 Jun 2010 20:42:01 +0900 (JST) Sender: owner-linux-mm@kvack.org To: David Rientjes Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , Rik van Riel , Nick Piggin , Oleg Nesterov , Balbir Singh , KAMEZAWA Hiroyuki , linux-mm@kvack.org List-ID: > The three oom killer sysctl variables (sysctl_oom_dump_tasks, > sysctl_oom_kill_allocating_task, and sysctl_panic_on_oom) are better > declared in include/linux/oom.h rather than kernel/sysctl.c. > > Acked-by: KOSAKI Motohiro > Signed-off-by: David Rientjes > --- > include/linux/oom.h | 5 +++++ > kernel/sysctl.c | 4 +--- > 2 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/include/linux/oom.h b/include/linux/oom.h > --- a/include/linux/oom.h > +++ b/include/linux/oom.h > @@ -44,5 +44,10 @@ static inline void oom_killer_enable(void) > { > oom_killer_disabled = false; > } > + > +/* sysctls */ > +extern int sysctl_oom_dump_tasks; > +extern int sysctl_oom_kill_allocating_task; > +extern int sysctl_panic_on_oom; > #endif /* __KERNEL__*/ > #endif /* _INCLUDE_LINUX_OOM_H */ > diff --git a/kernel/sysctl.c b/kernel/sysctl.c > --- a/kernel/sysctl.c > +++ b/kernel/sysctl.c > @@ -55,6 +55,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -87,9 +88,6 @@ > /* External variables not in a header file. */ > extern int sysctl_overcommit_memory; > extern int sysctl_overcommit_ratio; > -extern int sysctl_panic_on_oom; > -extern int sysctl_oom_kill_allocating_task; > -extern int sysctl_oom_dump_tasks; > extern int max_threads; > extern int core_uses_pid; > extern int suid_dumpable; pulled. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org