projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f650316
)
mm/page_alloc.c: adjust a call site to trace_mm_page_free_direct
author
Li Hong
<
[email protected]
>
Fri, 5 Mar 2010 21:41:53 +0000
(13:41 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Mar 2010 19:26:24 +0000
(11:26 -0800)
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 <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Larry Woodman <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Li Ming Chun <
[email protected]
>
Cc: KOSAKI Motohiro <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_alloc.c
patch
|
blob
|
history
diff --git
a/mm/page_alloc.c
b/mm/page_alloc.c
index ee37091b191ba1ad79d1ec37630fd83d654a2f7c..caa7df60a4a1e7548df23e468a0794cb332f09cd 100644
(file)
--- a/
mm/page_alloc.c
+++ b/
mm/page_alloc.c
@@
-1083,6
+1083,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);
}