Re: [PATCH v3 05/15] mm: introduce and use vma_filebacked_address()

"David Hildenbrand (Arm)" <[email protected]> Mon, 3 Aug 2026 11:54:31 +0200
Newsgroups org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm
Message-ID <[email protected]>
On 7/29/26 18:48, Lorenzo Stoakes (ARM) wrote:
> In cases where we know that the VMA is file-backed, use
> vma_filebacked_address() rather than vma_address().
> 
> This lays the foundation for using the anonymous page offset via
> vma_anon_address().

I was briefly confused why we can't do that immediately.

> 
> Also add an assert to ensure that the VMA whose address is required is not
> anonymous.
Acked-by: David Hildenbrand (Arm) <[email protected]>

-- 
Cheers,

David