Re: [PATCH v2 1/2] ksm: Initialize the addr only once in rmap_walk_ksm
From: David Hildenbrand (Arm)
Date: Fri Feb 06 2026 - 05:46:47 EST
On 2/6/26 10:57, xu.xin16@xxxxxxxxxx wrote:
From: xu xin <xu.xin16@xxxxxxxxxx>
This is a minor performance optimization, especially when there are many
for-loop iterations, because the addr variable doesn’t change across
iterations.
Therefore, it only needs to be initialized once before the loop.
Signed-off-by: xu xin <xu.xin16@xxxxxxxxxx>
---
Make sure to pick up any tags when resending! :)
Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David