From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 75B9D6B0071 for ; Wed, 13 Jan 2010 10:34:20 -0500 (EST) Received: by pxi5 with SMTP id 5so17654198pxi.12 for ; Wed, 13 Jan 2010 07:34:19 -0800 (PST) Date: Wed, 13 Jan 2010 23:34:12 +0800 From: Li Hong Subject: [PATCH 2/3] mm: page_alloc.c Adjust a call site to trace_mm_page_free_direct Message-ID: <20100113153412.GA12398@xhl> Reply-To: 20100113144917.GA11934@xhl.kvack.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-linux-mm@kvack.org To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Eduard - Gabriel Munteanu List-ID: 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 --- 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: email@kvack.org