Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7061817rwn; Tue, 13 Sep 2022 13:14:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR4u8oBZc2ITaapKKZiEQiuPZm38xPll6602OUveK9mZ9AscUWDzUCIRU6uAQcIow5cZm7RU X-Received: by 2002:a50:baa1:0:b0:43e:5e95:3eda with SMTP id x30-20020a50baa1000000b0043e5e953edamr27998701ede.340.1663100079443; Tue, 13 Sep 2022 13:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663100079; cv=none; d=google.com; s=arc-20160816; b=PrtLSeDcQOvfz6u5z071tYeKWMBm1qLy1g8fh1lqiTC9RZebKqextgr2hP1FZedbHF YouTdBwq4nX88ocGoc6Nl/nNjqXpDN+f03rCxj1JWXJWNQOHGkZIPt+wh8Qg3wN/dbpM 8n3Ajgh8As3CAvsSO++C8pv50Uog5bZ90/Tnrjw5+pQ2ukf1AU5Ue7nQruNRkzaOZpGi eEIVkV6hIZsSK3csrxu2Bredmu7a5qTt7ajku2oDXGPK6lF7WXJIrXJTH4IOlCnQWXle zBxFbxztZesszqzcP8OuPfKV1pkT87tTH5B+wa5yRUr+2vSaVXU1/tnkGNUmEA9yw9R6 oBOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6/+RylwAUS1L6kGkdbzNevLkV7SCUovxqo9fjOaS6JU=; b=eg/U8zQIdKIG+innJkY/NB7iotTSMxCHKLbsbWzxpZQSXyxqR38C2ItxP6js9Pr05R eu+d+yY1NOZZFfLXMVq3iF/iDa439Hiq1dPWhbFxcPfBP9/cSgnDoPo0wlwRxJcfUekS ZVw5hKB+oUK2JdMhiX23gVshxylavBaiX8MBzAJxMyswhSYgvuUgU38rzv0SSpu5/SYz OiMzOeIbcvdyF6tnC1B7iqWvaHIdiMzo0qAcG2wNcmSgWQSlLDodxT0Zt8unOFvNldEH sR71qxqRGjaFKdKGBt7o3l2e09cpclm9MeEhWXvjdcC4OtKEPcu4SUXSrjU6yWZYwnxy qgpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IIvzQBml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs38-20020a1709072d2600b007420947aa83si12755097ejc.193.2022.09.13.13.14.11; Tue, 13 Sep 2022 13:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IIvzQBml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230073AbiIMT7H (ORCPT + 99 others); Tue, 13 Sep 2022 15:59:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbiIMT6c (ORCPT ); Tue, 13 Sep 2022 15:58:32 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3B174B81; Tue, 13 Sep 2022 12:58:25 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id o13so10086435qvw.12; Tue, 13 Sep 2022 12:58:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=6/+RylwAUS1L6kGkdbzNevLkV7SCUovxqo9fjOaS6JU=; b=IIvzQBml/wGri/ZBWsuig4iC5yLnXMtk1VHesQ1eh/9HzasiMgV8YxfdpWHpGIoYep M/INFOPjeTVC3OEHHCjy2E1Hs8kTN4G53N8xRA/QBMd1ulJjTypxrYcp9Vasl1Q/eOJB qHAj6LLFWCEJm7FVRIifJLn+g0xAhtpqiGJt/0Lazj8LpFDzEnyQtx4bqcugERvtsdZG jeSnKtUCKGP4SXlnb3HB7CkPQRbT8a6KgjjUz3Q32zw4SQOfC5UckDKNJQGxML3W3hgv kauff9Q/Ua47CAvmWSZZgrFSzvsXxKLS/PIpqLn25rigG7/KetjxEqCiT7a4LgLAH6NO U6Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=6/+RylwAUS1L6kGkdbzNevLkV7SCUovxqo9fjOaS6JU=; b=qgVFZ8T7kukAfgpncvsvudRZ+DSjxdQyvYvQfMSlqLSIr/2/KakJQAmUJ8NlVxcvWR +77JmhrQ1attjTjhQ3C5VvwdQZEEdPQJTULyidCKIHt5nw5dSdSDq59/m0yLivBefH5w 2qlgHgBuKxfa8SCzWSb/YbTG4bk+HfCGTMvvdtYAN5U80VH188Lo9HqMi9BQVAuAzb4G ZVYMf4svKyDsaz9n/+Fthqi9sizW5jQyFW2NA1VDXh3Ur8S8kNa9o2OEcH+c5OIJrGHz OjTpY220DOnkOwQIdBAJbg+S/X7xf9dhbgL4zt+fSY6OtZzzv9o627JwM+/kDEh148E3 PsAA== X-Gm-Message-State: ACgBeo0SytFwwStcyHTs6CBGDEqpUIA1rjh6K5K7T6QqcKXa4GzsHjEs xohwT4YTTPzuY41nJ6q2gCg= X-Received: by 2002:a0c:d987:0:b0:4a5:192c:faff with SMTP id y7-20020a0cd987000000b004a5192cfaffmr29341373qvj.106.1663099104077; Tue, 13 Sep 2022 12:58:24 -0700 (PDT) Received: from stbirv-lnx-3.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id s11-20020a05620a29cb00b006b8e049cf08sm276305qkp.2.2022.09.13.12.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 12:58:23 -0700 (PDT) From: Doug Berger To: Andrew Morton Cc: Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Mike Kravetz , Muchun Song , Mike Rapoport , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Borislav Petkov , "Paul E. McKenney" , Neeraj Upadhyay , Randy Dunlap , Damien Le Moal , Doug Berger , Florian Fainelli , David Hildenbrand , Zi Yan , Oscar Salvador , Hari Bathini , Kees Cook , - , KOSAKI Motohiro , Mel Gorman , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux.dev Subject: [PATCH 08/21] mm/vmstat: show start_pfn when zone spans pages Date: Tue, 13 Sep 2022 12:54:55 -0700 Message-Id: <20220913195508.3511038-9-opendmb@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913195508.3511038-1-opendmb@gmail.com> References: <20220913195508.3511038-1-opendmb@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A zone that overlaps with another zone may span a range of pages that are not present. In this case, displaying the start_pfn of the zone allows the zone page range to be identified. Signed-off-by: Doug Berger --- mm/vmstat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/vmstat.c b/mm/vmstat.c index 90af9a8572f5..e2f19f2b7615 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1717,6 +1717,11 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, /* If unpopulated, no other information is useful */ if (!populated_zone(zone)) { + /* Show start_pfn for empty overlapped zones */ + if (zone->spanned_pages) + seq_printf(m, + "\n start_pfn: %lu", + zone->zone_start_pfn); seq_putc(m, '\n'); return; } -- 2.25.1