Received: by 10.192.165.148 with SMTP id m20csp35203imm; Fri, 4 May 2018 06:19:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoCmhER8yVguCH3Z5Bnzv3xuelU+u9kP/W3Bp8yrvaCHe1XIV652ZsREB8N35bKoxFZqdEF X-Received: by 10.98.219.5 with SMTP id f5mr26986961pfg.137.1525439972203; Fri, 04 May 2018 06:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525439972; cv=none; d=google.com; s=arc-20160816; b=mLt1pb3i4izkgbKq7PUv0s5v0kxPbyia6chqHmpZwFbg+xfCx7/j1L22g2r2Rann6V +ewUUoYV+TqOg5nPHGANwRONakMBobbERZ6/GNkA2GgEs5hkpfinZYeNoC3/XpCB4W3Y UiCq+GcXXDBCVYNCfsHEXNdd9dJUH9rrITEYlci0yDpeuoUoYhDg/safIG/DW6awcdFt dVd9P01DDzOwG1nnEBg5ibUeGExT6cYM3gIcM2MzH40ILklDeZVqNb3TwNO5X1Yrg49T +jnuxSyq0ds2BeEyz59ydGtMlw9TLM6ncnBA0CAKv5yEAmfwOIwYKOQY3J4tfMLdsUWY IPtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=boV4eflfRHKdp/o9SCyl3xZ0KG3tZMTdJhtODogbAmM=; b=oExb/f2pJu8+pOUaMkKVaGtYIjxs4tKSnz+uhhIpiUU0qcDgSCNj5YhwEzrsCeKzt2 fP8mwW6680EJPxukizAwXnhgL/g2FuKn50+79Ui4GT5L+j8+vH1cH5c9NegSa+fbNWkV o2+uuCQOze9O1HM7pB8Zd3SRl10bi9izQRC4eZ2FICuwKXV3/jq2yDbUbevGgA+wECUq +2Pu2LvsO+MOQmq1yNEuQOhuOgNc+ZNIZDMXo5Z9gixBBBR+ZqP3VSvF/K+8izj89HCi vhbGOWVCN7xlTQR/e/htJV6T5rPDy60pmsFUfRH77FeoCF/l5s7B1GlrXLp/W3kMFJcZ qrRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t137-v6si2944786pgb.654.2018.05.04.06.19.17; Fri, 04 May 2018 06:19:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751302AbeEDNS6 (ORCPT + 99 others); Fri, 4 May 2018 09:18:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:59627 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbeEDNS5 (ORCPT ); Fri, 4 May 2018 09:18:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DC12FAC8D; Fri, 4 May 2018 13:18:55 +0000 (UTC) Date: Fri, 4 May 2018 15:18:54 +0200 From: Michal Hocko To: Huaisheng Ye Cc: akpm@linux-foundation.org, linux-mm@kvack.org, vbabka@suse.cz, mgorman@techsingularity.net, pasha.tatashin@oracle.com, alexander.levin@verizon.com, hannes@cmpxchg.org, penguin-kernel@I-love.SAKURA.ne.jp, colyli@suse.de, chengnt@lenovo.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] mm/page_alloc: Fix typo in debug info of calculate_node_totalpages Message-ID: <20180504131854.GQ4535@dhcp22.suse.cz> References: <1525416729-108201-1-git-send-email-yehs1@lenovo.com> <1525416729-108201-4-git-send-email-yehs1@lenovo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525416729-108201-4-git-send-email-yehs1@lenovo.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 04-05-18 14:52:09, Huaisheng Ye wrote: > realtotalpages is calculated by taking off absent_pages from > spanned_pages in every zone. > Debug message of calculate_node_totalpages shall accurately > indicate that it is real totalpages to avoid ambiguity. Is the printk actually useful? Why don't we simply remove it? You can get the information from /proc/zoneinfo so why to litter the dmesg output? > Signed-off-by: Huaisheng Ye > --- > mm/page_alloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 1b39db4..9d57db2 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -5967,7 +5967,7 @@ static void __meminit calculate_node_totalpages(struct pglist_data *pgdat, > > pgdat->node_spanned_pages = totalpages; > pgdat->node_present_pages = realtotalpages; > - printk(KERN_DEBUG "On node %d totalpages: %lu\n", pgdat->node_id, > + printk(KERN_DEBUG "On node %d realtotalpages: %lu\n", pgdat->node_id, > realtotalpages); > } > > -- > 1.8.3.1 > -- Michal Hocko SUSE Labs