From patchwork Thu Mar 12 04:02:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hui yang X-Patchwork-Id: 11433173 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD7E592A for ; Thu, 12 Mar 2020 04:02:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 72F5520736 for ; Thu, 12 Mar 2020 04:02:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KDahnAJd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72F5520736 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 719026B0003; Thu, 12 Mar 2020 00:02:44 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6C9EA6B0006; Thu, 12 Mar 2020 00:02:44 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5B84A6B0007; Thu, 12 Mar 2020 00:02:44 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 4432A6B0003 for ; Thu, 12 Mar 2020 00:02:44 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 2D72C81C9 for ; Thu, 12 Mar 2020 04:02:44 +0000 (UTC) X-FDA: 76585363848.17.limit20_6f297a22e2510 X-Spam-Summary: 2,0,0,e5d13fd004fe9417,d41d8cd98f00b204,yanghui.def@gmail.com,,RULES_HIT:41:355:379:541:800:960:965:966:973:988:989:1260:1345:1437:1534:1540:1711:1714:1730:1747:1777:1792:2196:2198:2199:2200:2393:2538:2559:2562:2693:2731:3138:3139:3140:3141:3142:3351:3872:3876:4321:4385:4390:4395:4605:5007:6261:6653:7514:7576:8957:9413:10004:11026:11658:11914:12043:12295:12297:12438:12517:12519:12555:12679:12895:13069:13311:13357:14181:14384:14394:14687:14721:21080:21444:21451:21627:21666:30054:30056,0,RBL:209.85.214.195:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: limit20_6f297a22e2510 X-Filterd-Recvd-Size: 3383 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Thu, 12 Mar 2020 04:02:43 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id a23so2109810plm.1 for ; Wed, 11 Mar 2020 21:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rOtWKDkBK8lAx2V8neoGbKAqvWkJ1sOqKsQ54A95Loo=; b=KDahnAJdS0Q0eIlQcLZTEKVQjSdn3zRCFn3W7/oHHGqQSeVe3nr1a+xNsPN6tR6a8V /ws0Cq5LrLNQ3cvbit9jhOeJCXM2GAoHkyU50lW6YGMOtHkGguSk4fj4PuLLHzkZC5Fw OhoojYgydO8XG927Dlw4GH2aNZlJ90jFM8zDxBgsXctmPNWk/vr6rp/K6AFvAL+H9yNO zDu3nh0ztpCoEyosqOHZWF0c4wOFZG3V54lxmHJF6dUzQGHdMwvFLxnzm4nhN40NaB/H BBQuQEy1d7jiqli0hrijIwXwGrtMvPliOXVpnqUoUd7a7muQ3zASzX+blS3bDBU7p28c 2ofg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rOtWKDkBK8lAx2V8neoGbKAqvWkJ1sOqKsQ54A95Loo=; b=YyYuNdHUihIw0ZxruNrQjKdr3zO3b+2DCZGimdrcMaBUKdm6CY0+Ekd5ZNzJ+KBMPj Lw4YLYiT7vixESp+etjZwG8JIszz3njNF8NzljCjxJwrzMZUYLyzWxqj3gPWNbGu8Aze oVmQQTfKOaeG6GBbaVLDY0JnUflb1JRyg7PI7e/FqoyYOjGhNKyKU6aoe4dt6N4+cKjZ WrArZeT8ZAc2Unb43/VJ7YaQ+9xEMcAtHHhhvK1evF3petd8/q+DVQqYqE43Z+3wVYXn t3alE4+vJsla+b5y9CWu9TCA3re30mBAaKkp087pywfqzx3nbXXD7peptm53inMoluW2 nGzA== X-Gm-Message-State: ANhLgQ1TFa4nHvdZ3a2S+TC+OfHppoeIkpRMxaGijV7aJvZPy1yujyQx ObYZ6cumEWC1hr9t+wpGXzg= X-Google-Smtp-Source: ADFU+vsrFbG6hFea65TNCIWIIHZtqs1em+tEg2wxvnCAvNAUX+PK5TpgpoUwp6QLH9Rqp91J1mRdkQ== X-Received: by 2002:a17:902:7895:: with SMTP id q21mr6193733pll.222.1583985762522; Wed, 11 Mar 2020 21:02:42 -0700 (PDT) Received: from ubuntu.localdomain ([118.193.245.26]) by smtp.gmail.com with ESMTPSA id 19sm31350289pfn.30.2020.03.11.21.02.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Mar 2020 21:02:41 -0700 (PDT) From: hui yang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, YangHui Subject: [PATCH 20/20] mm: add "+" in show_free_areas() Date: Thu, 12 Mar 2020 12:02:32 +0800 Message-Id: <1583985752-42143-1-git-send-email-yanghui.def@gmail.com> X-Mailer: git-send-email 2.7.4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000006, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: YangHui if there has not "+" , it will show below: DMA: 305*4kB (UMCH).....5*2048kB (C) 13*4096kB (C) = 67196kB actually it's an addition expression so we should add "+" Signed-off-by: YangHui --- 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 3c4eb75..d90b3d7 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5399,7 +5399,7 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) } spin_unlock_irqrestore(&zone->lock, flags); for (order = 0; order < MAX_ORDER; order++) { - printk(KERN_CONT "%lu*%lukB ", + printk(KERN_CONT "+%lu*%lukB ", nr[order], K(1UL) << order); if (nr[order]) show_migration_types(types[order]);