Re: [PATCH v4 10/20] mm/rmap: track whether the page VMA mapped pgoff is anonymous

"David Hildenbrand (Arm)" <[email protected]>
Newsgroups org.kernel.vger.linux-fsdevel,org.freedesktop.lists.amd-gfx,org.freedesktop.lists.dri-devel,org.freedesktop.lists.intel-xe,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kernel.vger.linux-perf-users,org.kernel.vger.linux-s390,org.kernel.vger.linux-trace-kernel,org.kvack.linux-mm
Message-ID <[email protected]>
On 8/6/26 22:21, Lorenzo Stoakes (ARM) wrote:
> Update the page_vma_mapped_walk structure to track whether the pgoff being
> tracked is an anonymous pgoff or not and update the comments to reflect
> this.
> 
> This is necessary in order to determine the correct VMA page
> offset in vma_address_end() when pvmw->nr_pages > 1.
> 
> Also document that pvmw->pgoff is meaningless for pvmw->nr_pages == 1 and
> for KSM.
> 
> Do not set this field where pgoff is not specified.
> 
> This is laying the groundwork for eventually using anonymous page offsets
> as the index for all anonymous folios.
> 
> No functional change intended.
> 
> Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]>

Acked-by: David Hildenbrand (Arm) <[email protected]>

-- 
Cheers,

David
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.