Re: [PATCH v4 11/20] mm: clean up vma_address_end()

From: David Hildenbrand (Arm)

Date: Tue Aug 11 2026 - 13:35:04 EST


On 8/6/26 22:21, Lorenzo Stoakes (ARM) wrote:
> vma_address_end() is a confusing function with a lot of moving parts so
> clean it up prior to extending it for anon page indexed mappings.
>
> Const-ify some variables and establish pgoff_vma_start and pgoff_end
> variables to clearly identify the page offset for the start of the VMA and
> the end of the page offset range specified by the page walk.
>
> This simplifies the function significantly and lays the groundwork for a
> future change to update this function to account for anonymously page
> indexed folios.
>
> No functional change intended.
>
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
> ---

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David