lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ef853093-3007-49d9-aff2-fa39fef2b9b3@kernel.org>
Date: Fri, 6 Feb 2026 11:46:42 +0100
From: "David Hildenbrand (Arm)" <david@...nel.org>
To: xu.xin16@....com.cn, akpm@...ux-foundation.org
Cc: chengming.zhou@...ux.dev, hughd@...gle.com, wang.yaxin@....com.cn,
 yang.yang29@....com.cn, linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] ksm: Initialize the addr only once in
 rmap_walk_ksm

On 2/6/26 10:57, xu.xin16@....com.cn wrote:
> From: xu xin <xu.xin16@....com.cn>
> 
> 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@....com.cn>
> ---

Make sure to pick up any tags when resending! :)

Acked-by: David Hildenbrand (Arm) <david@...nel.org>

-- 
Cheers,

David

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ