Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756623Ab0KRMkq (ORCPT ); Thu, 18 Nov 2010 07:40:46 -0500 Received: from gir.skynet.ie ([193.1.99.77]:46303 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130Ab0KRMkp (ORCPT ); Thu, 18 Nov 2010 07:40:45 -0500 Date: Thu, 18 Nov 2010 12:40:30 +0000 From: Mel Gorman To: Andrea Arcangeli Cc: linux-mm@kvack.org, Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Hugh Dickins , Rik van Riel , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura , Chris Mason , Borislav Petkov Subject: Re: [PATCH 08 of 66] fix bad_page to show the real reason the page is bad Message-ID: <20101118124030.GL8135@csn.ul.ie> References: <412c4bbbe7738978ce73.1288798063@v2.random> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <412c4bbbe7738978ce73.1288798063@v2.random> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1303 Lines: 37 On Wed, Nov 03, 2010 at 04:27:43PM +0100, Andrea Arcangeli wrote: > From: Andrea Arcangeli > > page_count shows the count of the head page, but the actual check is done on > the tail page, so show what is really being checked. > > Signed-off-by: Andrea Arcangeli > Acked-by: Rik van Riel > Acked-by: Mel Gorman This can be sent on its own as it's not really related to THP. > --- > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -5564,7 +5564,7 @@ void dump_page(struct page *page) > { > printk(KERN_ALERT > "page:%p count:%d mapcount:%d mapping:%p index:%#lx\n", > - page, page_count(page), page_mapcount(page), > + page, atomic_read(&page->_count), page_mapcount(page), > page->mapping, page->index); > dump_page_flags(page->flags); > } > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/