Skip to content

Commit

Permalink
mm/page_alloc.c: adjust a call site to trace_mm_page_free_direct
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
swanli authored and torvalds committed Mar 6, 2010
1 parent f650316 commit c475dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -1136,7 +1137,6 @@ static void free_hot_cold_page(struct page *page, int cold)

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

Expand Down

0 comments on commit c475dab

Please sign in to comment.