From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754964AbaKSAzY (ORCPT ); Tue, 18 Nov 2014 19:55:24 -0500 Received: from mta-out1.inet.fi ([62.71.2.203]:37607 "EHLO kirsi1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754345AbaKSAzX (ORCPT ); Tue, 18 Nov 2014 19:55:23 -0500 Date: Wed, 19 Nov 2014 02:54:55 +0200 From: "Kirill A. Shutemov" To: Naoya Horiguchi Cc: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Dave Hansen , Hugh Dickins , Mel Gorman , Rik van Riel , Vlastimil Babka , Christoph Lameter , Steve Capper , "Aneesh Kumar K.V" , Johannes Weiner , Michal Hocko , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Subject: Re: [PATCH 06/19] mm: store mapcount for compound page separate Message-ID: <20141119005455.GA32179@node.dhcp.inet.fi> References: <1415198994-15252-1-git-send-email-kirill.shutemov@linux.intel.com> <1415198994-15252-7-git-send-email-kirill.shutemov@linux.intel.com> <20141118084337.GA16714@hori1.linux.bs1.fc.nec.co.jp> <20141118095811.GA21774@node.dhcp.inet.fi> <20141118234145.GA4116@hori1.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141118234145.GA4116@hori1.linux.bs1.fc.nec.co.jp> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 18, 2014 at 11:41:08PM +0000, Naoya Horiguchi wrote: > > > > @@ -6632,10 +6637,12 @@ static void dump_page_flags(unsigned long flags) > > > > void dump_page_badflags(struct page *page, const char *reason, > > > > unsigned long badflags) > > > > { > > > > - printk(KERN_ALERT > > > > - "page:%p count:%d mapcount:%d mapping:%p index:%#lx\n", > > > > + pr_alert("page:%p count:%d mapcount:%d mapping:%p index:%#lx", > > > > page, atomic_read(&page->_count), page_mapcount(page), > > > > page->mapping, page->index); > > > > + if (PageCompound(page)) > > > > > > > + printk(" compound_mapcount: %d", compound_mapcount(page)); > > > > + printk("\n"); > > > > > > These two printk() should be pr_alert(), too? > > > > No. It will split the line into several messages in dmesg. > > This splitting is fine. I meant that these printk()s are for one series > of message, so setting the same log level looks reasonable to me. Hm. It seems what I really need to use there is pr_cont(). I didn't know it exists. Thanks for hint ;) -- Kirill A. Shutemov