Re: [PATCH 15/30] mm: introduce and use linear_page_delta()
From: Gregory Price
Date: Thu Jul 09 2026 - 11:24:01 EST
On Mon, Jun 29, 2026 at 01:23:26PM +0100, Lorenzo Stoakes wrote:
> 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: Gregory Price <gourry@xxxxxxxxxx>