linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] mm/buddy: more comments for show_free_areas()
@ 2012-07-06  5:51 Gavin Shan
  2012-07-06  8:23 ` Cong Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Gavin Shan @ 2012-07-06  5:51 UTC (permalink / raw)
  To: linux-mm; +Cc: xiyou.wangcong, akpm, Gavin Shan

The initial idea comes from Cong Wang. We're running out of memory
while calling function show_free_areas(). So it would be unsafe
to allocate more memory from either stack or heap. The patche adds
more comments to address that.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
---
 mm/page_alloc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 4403009..280c13b 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2762,6 +2762,9 @@ out:
  * memory on each free list with the exception of the first item on the list.
  * Suppresses nodes that are not allowed by current's cpuset if
  * SHOW_MEM_FILTER_NODES is passed.
+ *
+ * We're running out of memory while calling the function. So don't allocate
+ * more memory from either stack or heap.
  */
 void show_free_areas(unsigned int filter)
 {
-- 
1.7.9.5

--
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>

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

* Re: [PATCH v2] mm/buddy: more comments for show_free_areas()
  2012-07-06  5:51 [PATCH v2] mm/buddy: more comments for show_free_areas() Gavin Shan
@ 2012-07-06  8:23 ` Cong Wang
  2012-07-09 21:21   ` David Rientjes
  0 siblings, 1 reply; 3+ messages in thread
From: Cong Wang @ 2012-07-06  8:23 UTC (permalink / raw)
  To: Gavin Shan; +Cc: linux-mm, akpm

On Fri, Jul 6, 2012 at 1:51 PM, Gavin Shan <shangw@linux.vnet.ibm.com> wrote:
> The initial idea comes from Cong Wang. We're running out of memory
> while calling function show_free_areas(). So it would be unsafe
> to allocate more memory from either stack or heap. The patche adds
> more comments to address that.
>

Looks good to me,

Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>

Thanks.

--
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>

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

* Re: [PATCH v2] mm/buddy: more comments for show_free_areas()
  2012-07-06  8:23 ` Cong Wang
@ 2012-07-09 21:21   ` David Rientjes
  0 siblings, 0 replies; 3+ messages in thread
From: David Rientjes @ 2012-07-09 21:21 UTC (permalink / raw)
  To: Cong Wang; +Cc: Gavin Shan, linux-mm, akpm

On Fri, 6 Jul 2012, Cong Wang wrote:

> > The initial idea comes from Cong Wang. We're running out of memory
> > while calling function show_free_areas(). So it would be unsafe
> > to allocate more memory from either stack or heap. The patche adds
> > more comments to address that.
> >
> 
> Looks good to me,
> 
> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
> 

Nack, please see my response to the first version.

--
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>

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

end of thread, other threads:[~2012-07-09 21:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-06  5:51 [PATCH v2] mm/buddy: more comments for show_free_areas() Gavin Shan
2012-07-06  8:23 ` Cong Wang
2012-07-09 21:21   ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).