From: tip-bot for Mel Gorman <mel@csn.ul.ie>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, acme@redhat.com, hpa@zytor.com,
mingo@redhat.com, mel@csn.ul.ie, davem@davemloft.net,
akpm@linux-foundation.org, htd@fancy-poultry.org,
tglx@linutronix.de, kosaki.motohiro@jp.fujitsu.com,
linux-mm@kvack.org, mingo@elte.hu
Subject: [tip:tracing/urgent] profile: Suppress warning about large allocations when profile=1 is specified
Date: Sat, 18 Jul 2009 10:57:35 GMT [thread overview]
Message-ID: <tip-e5d490b252423605a77c54b2e35b10ea663763df@git.kernel.org> (raw)
In-Reply-To: <1247656992-19846-3-git-send-email-mel@csn.ul.ie>
Commit-ID: e5d490b252423605a77c54b2e35b10ea663763df
Gitweb: http://git.kernel.org/tip/e5d490b252423605a77c54b2e35b10ea663763df
Author: Mel Gorman <mel@csn.ul.ie>
AuthorDate: Wed, 15 Jul 2009 12:23:11 +0100
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Sat, 18 Jul 2009 12:55:28 +0200
profile: Suppress warning about large allocations when profile=1 is specified
When profile= is used, a large buffer is allocated early at
boot. This can be larger than what the page allocator can
provide so it prints a warning. However, the caller is able to
handle the situation so this patch suppresses the warning.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>
Cc: Heinz Diehl <htd@fancy-poultry.org>
Cc: David Miller <davem@davemloft.net>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <1247656992-19846-3-git-send-email-mel@csn.ul.ie>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/profile.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/kernel/profile.c b/kernel/profile.c
index 69911b5..419250e 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -117,11 +117,12 @@ int __ref profile_init(void)
cpumask_copy(prof_cpu_mask, cpu_possible_mask);
- prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL);
+ prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN);
if (prof_buffer)
return 0;
- prof_buffer = alloc_pages_exact(buffer_bytes, GFP_KERNEL|__GFP_ZERO);
+ prof_buffer = alloc_pages_exact(buffer_bytes,
+ GFP_KERNEL|__GFP_ZERO|__GFP_NOWARN);
if (prof_buffer)
return 0;
WARNING: multiple messages have this Message-ID (diff)
From: tip-bot for Mel Gorman <mel@csn.ul.ie>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, acme@redhat.com, hpa@zytor.com,
mingo@redhat.com, mel@csn.ul.ie, davem@davemloft.net,
akpm@linux-foundation.org, htd@fancy-poultry.org,
tglx@linutronix.de, kosaki.motohiro@jp.fujitsu.com,
linux-mm@kvack.org, mingo@elte.hu
Subject: [tip:tracing/urgent] profile: Suppress warning about large allocations when profile=1 is specified
Date: Sat, 18 Jul 2009 10:57:35 GMT [thread overview]
Message-ID: <tip-e5d490b252423605a77c54b2e35b10ea663763df@git.kernel.org> (raw)
In-Reply-To: <1247656992-19846-3-git-send-email-mel@csn.ul.ie>
Commit-ID: e5d490b252423605a77c54b2e35b10ea663763df
Gitweb: http://git.kernel.org/tip/e5d490b252423605a77c54b2e35b10ea663763df
Author: Mel Gorman <mel@csn.ul.ie>
AuthorDate: Wed, 15 Jul 2009 12:23:11 +0100
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Sat, 18 Jul 2009 12:55:28 +0200
profile: Suppress warning about large allocations when profile=1 is specified
When profile= is used, a large buffer is allocated early at
boot. This can be larger than what the page allocator can
provide so it prints a warning. However, the caller is able to
handle the situation so this patch suppresses the warning.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>
Cc: Heinz Diehl <htd@fancy-poultry.org>
Cc: David Miller <davem@davemloft.net>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <1247656992-19846-3-git-send-email-mel@csn.ul.ie>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/profile.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/kernel/profile.c b/kernel/profile.c
index 69911b5..419250e 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -117,11 +117,12 @@ int __ref profile_init(void)
cpumask_copy(prof_cpu_mask, cpu_possible_mask);
- prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL);
+ prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN);
if (prof_buffer)
return 0;
- prof_buffer = alloc_pages_exact(buffer_bytes, GFP_KERNEL|__GFP_ZERO);
+ prof_buffer = alloc_pages_exact(buffer_bytes,
+ GFP_KERNEL|__GFP_ZERO|__GFP_NOWARN);
if (prof_buffer)
return 0;
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-07-18 10:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 11:23 [PATCH 0/3] Suppress page allocator warnings about order >= MAX_ORDER (resend) Mel Gorman
2009-07-15 11:23 ` Mel Gorman
2009-07-15 11:23 ` [PATCH 1/3] page-allocator: Allow too high-order warning messages to be suppressed with __GFP_NOWARN Mel Gorman
2009-07-15 11:23 ` Mel Gorman
2009-07-15 19:55 ` David Rientjes
2009-07-15 19:55 ` David Rientjes
2009-07-16 1:02 ` KOSAKI Motohiro
2009-07-16 1:02 ` KOSAKI Motohiro
2009-07-15 11:23 ` [PATCH 2/3] profile: Suppress warning about large allocations when profile=1 is specified Mel Gorman
2009-07-15 11:23 ` Mel Gorman
2009-07-16 1:12 ` KOSAKI Motohiro
2009-07-16 1:12 ` KOSAKI Motohiro
2009-07-16 10:37 ` Mel Gorman
2009-07-16 10:37 ` Mel Gorman
2009-07-16 23:43 ` KOSAKI Motohiro
2009-07-16 23:43 ` KOSAKI Motohiro
2009-07-18 10:57 ` tip-bot for Mel Gorman [this message]
2009-07-18 10:57 ` [tip:tracing/urgent] " tip-bot for Mel Gorman
2009-07-15 11:23 ` [PATCH 3/3] net-dccp: Suppress warning about large allocations from DCCP Mel Gorman
2009-07-15 11:23 ` Mel Gorman
2009-07-15 13:56 ` Arnaldo Carvalho de Melo
2009-07-15 13:56 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-e5d490b252423605a77c54b2e35b10ea663763df@git.kernel.org \
--to=mel@csn.ul.ie \
--cc=acme@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=hpa@zytor.com \
--cc=htd@fancy-poultry.org \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.