From: Ye Liu <ye.liu@linux.dev>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Ye Liu <liuye@kylinos.cn>
Subject: [PATCH 2/3] tools/mm: remove Page Index field from show_page_info
Date: Wed, 14 Oct 2026 15:04:29 +0800 [thread overview]
Message-ID: <20261014-show_page_info-v1-2-7a68aee0114a@linux.dev> (raw)
In-Reply-To: <20261014-show_page_info-v1-0-7a68aee0114a@linux.dev>
Pages don't have indexes, folios have indexes. Remove the
__folio_index field access.
Signed-off-by: Ye Liu <liuye@kylinos.cn>
---
tools/mm/show_page_info.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/mm/show_page_info.py b/tools/mm/show_page_info.py
index 9cfb5cac05a3..1fbef3889e91 100644
--- a/tools/mm/show_page_info.py
+++ b/tools/mm/show_page_info.py
@@ -92,7 +92,6 @@ def show_page_state(page, addr, mm, pid, task):
"Page Virtual": hex(page_to_virt(page).value_()),
"Page Refcount": page._refcount.counter.value_(),
"Page Mapcount": page._mapcount.counter.value_(),
- "Page Index": hex(page.__folio_index.value_()),
"Page Memcg Data": hex(page.memcg_data.value_()),
}
--
2.43.0
next prev parent reply other threads:[~2026-10-14 7:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 7:04 [PATCH 0/3] tools/mm: show_page_info.py enhancements and fixes Ye Liu
2026-10-14 7:04 ` [PATCH 1/3] tools/mm: fix memcg info retrieval in show_page_info.py Ye Liu
2026-10-14 7:04 ` Ye Liu [this message]
2026-10-14 7:04 ` [PATCH 3/3] tools/mm: add VMA flags decoding and name display to show_page_info.py Ye Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261014-show_page_info-v1-2-7a68aee0114a@linux.dev \
--to=ye.liu@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=liuye@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®