Re: [PATCH v2 2/2] ksm: Use precise linear_page_index instead of the whole address space

From: David Hildenbrand (Arm)

Date: Thu Jul 09 2026 - 06:07:25 EST


On 7/9/26 11:33, xu.xin16@xxxxxxxxxx wrote:
> From: xu xin <xu.xin16@xxxxxxxxxx>
>
> Since we now have linear_page_index available that we can use here,
> allowing for optimizing the RMAP walk, we can also use it to locate
> more precisely all related-processes when error hits the KSM page,
> which will decrease a lot of invalid iterations.
>
> Signed-off-by: xu xin <xu.xin16@xxxxxxxxxx>
> ---

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

--
Cheers,

David