From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id AB2B36B00A2 for ; Tue, 26 Jan 2010 13:39:19 -0500 (EST) Date: Tue, 26 Jan 2010 18:39:03 +0000 From: Mel Gorman Subject: Re: [PATCH 06 of 31] clear compound mapping Message-ID: <20100126183903.GK16468@csn.ul.ie> References: <7cf11b425ecd44419ccc.1264513921@v2.random> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <7cf11b425ecd44419ccc.1264513921@v2.random> Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: linux-mm@kvack.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Andi Kleen , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , Andrew Morton , bpicco@redhat.com, Christoph Hellwig , KOSAKI Motohiro List-ID: On Tue, Jan 26, 2010 at 02:52:01PM +0100, Andrea Arcangeli wrote: > From: Andrea Arcangeli > > Clear compound mapping for anonymous compound pages like it already happens for > regular anonymous pages. > > Signed-off-by: Andrea Arcangeli Acked-by: Mel Gorman > --- > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -584,6 +584,8 @@ static void __free_pages_ok(struct page > > kmemcheck_free_shadow(page, order); > > + if (PageAnon(page)) > + page->mapping = NULL; > for (i = 0 ; i < (1 << order) ; ++i) > bad += free_pages_check(page + i); > if (bad) > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- 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