diff options
| author | Kemeng Shi <shikemeng@huaweicloud.com> | 2026-09-07 17:13:55 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-08 22:54:59 -0700 |
| commit | 868346102067b12cbf2d639583079e0cb048ea55 (patch) | |
| tree | 85db22d8d6aca840f07910cb5338ce36a674fc05 /scripts/Makefile.thinlto | |
| parent | be0291c3c43f8e43e96621e505583ee6b76f0718 (diff) | |
mm, swap: return early from swap_extend_table_try_free() on first non-zero entry
Return immediately when the first non-zero swap count is found as any
non-zero swap count prevents freeing extend_table and further iteration is
pointless.
Link: https://lore.kernel.org/20260907091356.53026-4-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Youngjun Park <youngjun.park@lge.com>
Acked-by: Kairui Song <kasong@tencent.com>
Cc: Baoquan He <baoquan.he@linux.dev>
Cc: Barry Song <baohua@kernel.org>
Cc: Chris Li <chrisl@kernel.org>
Cc: Luiz Capitulino <luizcap@redhat.com>
Cc: Nhat Pham <nphamcs@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
