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 C2DC16B0083 for ; Sun, 21 Feb 2010 09:18:43 -0500 (EST) Message-Id: <20100221141753.636501660@redhat.com> Date: Sun, 21 Feb 2010 15:10:15 +0100 From: aarcange@redhat.com Subject: [patch 06/36] clear compound mapping References: <20100221141009.581909647@redhat.com> Content-Disposition: inline; filename=compound_mapping Sender: owner-linux-mm@kvack.org To: linux-mm@kvack.org Cc: Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , Andrew Morton , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , Arnd Bergmann , Andrea Arcangeli List-ID: 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: Rik van Riel 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) -- 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