diff options
| author | 2026-07-26 21:35:01 +0800 | |
|---|---|---|
| committer | 2026-08-06 18:57:25 -0700 | |
| commit | 6be12ddb52f9a3fa62f078a0b61573416de5ff5c (patch) | |
| tree | c5b5a3febb0bbe1bfa4a3779bb4843aecdb620e4 /scripts/Makefile.thinlto | |
| parent | mm: fold userfaultfd_rwp() to false without CONFIG_ARCH_HAS_PTE_PROTNONE (diff) | |
ksm: stop iterating VMAs when ksm_test_exit returns true
In scan_get_next_rmap_item() the break statement only exits the inner
while loop, leaving remaining VMAs to be iterated even if ksm_test_exit()
returns true. Replace it with a goto statement to avoid the unnecessary
work.
Link: https://lore.kernel.org/20260726133501.504048-1-wsw9603@163.com
Signed-off-by: Wang Wensheng <wsw9603@163.com>
Reviewed-by: Xu Xin <xu.xin16@zte.com.cn>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
