linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] mm: page_alloc.c Adjust a call site to trace_mm_page_free_direct
@ 2010-01-13 14:52 Li Hong
  0 siblings, 0 replies; 2+ messages in thread
From: Li Hong @ 2010-01-13 14:52 UTC (permalink / raw)
  To: linux-mm, linux-kernel, Andrew Morton, Eduard - Gabriel Munteanu

Move a call of 'trace_mm_page_free_direct' from 'free_hot_page' to
'free_hot_cold_page'. It is clearer and close to 'kmemcheck_free_shadow', as it
is done in function '__free_pages_ok'.

Signed-off-by: Li Hong <lihong.hi@gmail.com>
---
 mm/page_alloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 24344cd..175dd36 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1082,6 +1082,7 @@ static void free_hot_cold_page(struct page
*page, int cold)
        int migratetype;
        int wasMlocked = __TestClearPageMlocked(page);

+       trace_mm_page_free_direct(page, 0);
        kmemcheck_free_shadow(page, 0);

        if (PageAnon(page))
@@ -1136,7 +1137,6 @@ out:

 void free_hot_page(struct page *page)
 {
-       trace_mm_page_free_direct(page, 0);
        free_hot_cold_page(page, 0);
 }

-- 
1.6.3.3

--
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] 2+ messages in thread

* [PATCH 2/3] mm: page_alloc.c Adjust a call site to trace_mm_page_free_direct
@ 2010-01-13 15:34 Li Hong
  0 siblings, 0 replies; 2+ messages in thread
From: Li Hong @ 2010-01-13 15:34 UTC (permalink / raw)
  To: linux-mm, linux-kernel, Andrew Morton, Eduard - Gabriel Munteanu

Move a call of 'trace_mm_page_free_direct' from 'free_hot_page' to
'free_hot_cold_page'. It is clearer and close to 'kmemcheck_free_shadow', as it
is done in function '__free_pages_ok'.

Signed-off-by: Li Hong <lihong.hi@gmail.com>
---
 mm/page_alloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 24344cd..175dd36 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1082,6 +1082,7 @@ static void free_hot_cold_page(struct page *page, int cold)
        int migratetype;
        int wasMlocked = __TestClearPageMlocked(page);
 
+       trace_mm_page_free_direct(page, 0);
        kmemcheck_free_shadow(page, 0);
 
        if (PageAnon(page))
@@ -1136,7 +1137,6 @@ out:
 
 void free_hot_page(struct page *page)
 {
-       trace_mm_page_free_direct(page, 0);
        free_hot_cold_page(page, 0);
 }
        
-- 
1.6.3.3

--
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] 2+ messages in thread

end of thread, other threads:[~2010-01-13 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 14:52 [PATCH 2/3] mm: page_alloc.c Adjust a call site to trace_mm_page_free_direct Li Hong
  -- strict thread matches above, loose matches on Subject: below --
2010-01-13 15:34 Li Hong

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