[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251002073255.14867-1-lance.yang@linux.dev>
Date: Thu, 2 Oct 2025 15:32:53 +0800
From: Lance Yang <lance.yang@...ux.dev>
To: akpm@...ux-foundation.org,
david@...hat.com,
lorenzo.stoakes@...cle.com
Cc: ziy@...dia.com,
baolin.wang@...ux.alibaba.com,
Liam.Howlett@...cle.com,
npache@...hat.com,
ryan.roberts@....com,
dev.jain@....com,
baohua@...nel.org,
ioworker0@...il.com,
richard.weiyang@...il.com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [PATCH mm-new 0/2] mm/khugepaged: refactor and merge PTE scanning logic
Hi all,
This series cleans up the almost-duplicated PTE scanning logic in the
collapse path.
The first one is a preparatory step that refactors both loops to use
a single if-else-if-else-if chain for checking disjoint PTEs.
The second one then extracts the common logic into a shared helper.
Thanks,
Lance
Lance Yang (2):
mm/khugepaged: optimize PTE scanning with if-else-if-else-if chain
mm/khugepaged: merge PTE scanning logic into a new helper
mm/khugepaged.c | 171 +++++++++++++++++++++++++++++-------------------
1 file changed, 104 insertions(+), 67 deletions(-)
--
2.49.0
Powered by blists - more mailing lists