Re: [PATCH 15/30] mm: introduce and use linear_page_delta()

From: Ackerley Tng

Date: Wed Jul 08 2026 - 20:06:21 EST


Lorenzo Stoakes <ljs@xxxxxxxxxx> writes:

> It's often useful to obtain the number of pages a given address lies at
> within a VMA.
>
> Add linear_page_delta() to determine this and update linear_page_index() to
> make use of it.
>
> Add comments to describe both linear_page_delta() and linear_page_index().
>
> No functional change intended.
>
> Signed-off-by: Lorenzo Stoakes <ljs@xxxxxxxxxx>

Reviewed-by: Ackerley Tng <ackerleytng@xxxxxxxxxx>

>
> [...snip...]
>