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 SMTP id 3B3846B00BD for ; Mon, 8 Nov 2010 22:03:51 -0500 (EST) Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id oA933nEr017313 for (envelope-from kosaki.motohiro@jp.fujitsu.com); Tue, 9 Nov 2010 12:03:49 +0900 Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id DA34D45DE57 for ; Tue, 9 Nov 2010 12:03:48 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id B45AC45DE51 for ; Tue, 9 Nov 2010 12:03:48 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 957F5E08002 for ; Tue, 9 Nov 2010 12:03:48 +0900 (JST) Received: from m107.s.css.fujitsu.com (m107.s.css.fujitsu.com [10.249.87.107]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 4E23F1DB803C for ; Tue, 9 Nov 2010 12:03:45 +0900 (JST) From: KOSAKI Motohiro Subject: Re: [PATCH 08 of 66] fix bad_page to show the real reason the page is bad In-Reply-To: <412c4bbbe7738978ce73.1288798063@v2.random> References: <412c4bbbe7738978ce73.1288798063@v2.random> Message-Id: <20101109120400.BC45.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 9 Nov 2010 12:03:43 +0900 (JST) Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: kosaki.motohiro@jp.fujitsu.com, linux-mm@kvack.org, Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Hugh Dickins , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, Balbir Singh , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura , Chris Mason , Borislav Petkov List-ID: > 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 > --- > > 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); > } Reviewed-by: KOSAKI Motohiro -- 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/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org