Re: [PATCH v3 04/15] mm: update print_bad_page_map() to show anonymous page index

Gregory Price <[email protected]>
Newsgroups org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm
Message-ID <amrvgjPNfKqWPUU0@gourry-fedora-PF4VCD3F>
On Wed, Jul 29, 2026 at 05:48:39PM +0100, Lorenzo Stoakes (ARM) wrote:
> This is potentially useful debugging information and matches the existing
> page offset provided.
> 
> Use the raw __linear_anon_page_index() function so as to always output this
> value regardless of whether the mapping is file-backed or not.
> 

Begs the question whether we should mark the value based on whether
it is file backed or not, but i suppose you can gleen that from the
other printed values (anon_mem, mapping, vm_ops, etc).

> Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]>

Reviewed-by: Gregory Price (Meta) <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.