Message ID | 20220913195508.3511038-9-opendmb@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9796EC54EE9 for <linux-mm@archiver.kernel.org>; Tue, 13 Sep 2022 19:58:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 347C76B0085; Tue, 13 Sep 2022 15:58:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F79B6B0087; Tue, 13 Sep 2022 15:58:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 173528D0001; Tue, 13 Sep 2022 15:58:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 0689C6B0085 for <linux-mm@kvack.org>; Tue, 13 Sep 2022 15:58:25 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id DBDB9120A3E for <linux-mm@kvack.org>; Tue, 13 Sep 2022 19:58:24 +0000 (UTC) X-FDA: 79908124128.11.7FDB8C6 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) by imf23.hostedemail.com (Postfix) with ESMTP id 858811400B5 for <linux-mm@kvack.org>; Tue, 13 Sep 2022 19:58:24 +0000 (UTC) Received: by mail-qv1-f50.google.com with SMTP id s13so10080313qvq.10 for <linux-mm@kvack.org>; Tue, 13 Sep 2022 12:58:24 -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=0AiwN3rVWvPf8cLkUihfnvjUF78hXezu4+m15/Zo0cc+xcfGio3/YsqeKx5tc+YZD4 D9pP+jgMV2rDusl7rcl4prtoduI7FJCwi3Rlhl56R4aCEpPL5mnuKiss+61H4eV6PiHE x3CgW7fcS590BYvkB4DyY/J8GUzrkFc54IV5oMZsG+fl9rwm3yt4S8oHNf9BJq0TBYgK MB9HSAISFsENS11Zs+M9GzH/RCDJehmzi0Pz/OfWxR1glpqJle50uNAu2IFeTmIMw5U+ 6PwNQ/NwXTvJsWeG2XM95a//TFIxzVa8aH+AZ5NkDsYdnmAPVIWkutpTueka1OnZjCPY peIw== X-Gm-Message-State: ACgBeo0AsNFjwdUVy2OMTU06aGCbqEAuCINocxxFGVIMzqFcB6dVRD70 aJTj+S2EJ7xaOhzKuYkW50k= X-Google-Smtp-Source: AA6agR7HhxHAKHSAet4vBy7WKGiBHiOPyi3Gu3lpC/Y1Ix8I/hDUvAWKeNeCYEL5N+Wcelu80g5S7w== 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 <opendmb@gmail.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Jonathan Corbet <corbet@lwn.net>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Frank Rowand <frowand.list@gmail.com>, Mike Kravetz <mike.kravetz@oracle.com>, Muchun Song <songmuchun@bytedance.com>, Mike Rapoport <rppt@kernel.org>, Christoph Hellwig <hch@lst.de>, Marek Szyprowski <m.szyprowski@samsung.com>, Robin Murphy <robin.murphy@arm.com>, Borislav Petkov <bp@suse.de>, "Paul E. McKenney" <paulmck@kernel.org>, Neeraj Upadhyay <quic_neeraju@quicinc.com>, Randy Dunlap <rdunlap@infradead.org>, Damien Le Moal <damien.lemoal@opensource.wdc.com>, Doug Berger <opendmb@gmail.com>, Florian Fainelli <f.fainelli@gmail.com>, David Hildenbrand <david@redhat.com>, Zi Yan <ziy@nvidia.com>, Oscar Salvador <osalvador@suse.de>, Hari Bathini <hbathini@linux.ibm.com>, Kees Cook <keescook@chromium.org>, - <devicetree-spec@vger.kernel.org>, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>, Mel Gorman <mgorman@suse.de>, 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 ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IIvzQBml; spf=pass (imf23.hostedemail.com: domain of opendmb@gmail.com designates 209.85.219.50 as permitted sender) smtp.mailfrom=opendmb@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663099104; a=rsa-sha256; cv=none; b=t4CNNRSu9LSxS2L611abyr6ALVByrmyGVm1I1oTaP8xKZ/MQbTDsAK+DqRI5/ucWAvr8LK hirchtZEcpg8ENeiFPjm8m9PCNQJl1WTXPm+zyUQL8gzFAaNagEAFYBckgVnqurM+rZg7n FQL0M73A88rZJ4ehaiF618rYsDrXVh4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663099104; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=6/+RylwAUS1L6kGkdbzNevLkV7SCUovxqo9fjOaS6JU=; b=wia1tfjojNyD1TQTFIprqkfn9zVmPAZVkq1K4m0dl0doEcXBXxkx42A1/AftFLq7Xd+hNJ PASINJsntg26Y7KfuRCBOo/2SyzQqQ8tMBiaPI57gRDlRVzTpnOUVdK2z91/aciKU84nya 4os9ZRhlpsbVb2f5D57uQZ7AZdOU2bc= Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IIvzQBml; spf=pass (imf23.hostedemail.com: domain of opendmb@gmail.com designates 209.85.219.50 as permitted sender) smtp.mailfrom=opendmb@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam12 X-Stat-Signature: rgziuttgio9b7r5jmu1z3eimfqysyswa X-Rspamd-Queue-Id: 858811400B5 X-Rspam-User: X-HE-Tag: 1663099104-739665 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
mm: introduce Designated Movable Blocks
|
expand
|
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; }
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 <opendmb@gmail.com> --- mm/vmstat.c | 5 +++++ 1 file changed, 5 insertions(+)