linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mm-new 0/2] mm/khugepaged: refactor and merge PTE scanning logic
@ 2025-10-02  7:32 Lance Yang
  2025-10-02  7:32 ` [PATCH mm-new 1/2] mm/khugepaged: optimize PTE scanning with if-else-if-else-if chain Lance Yang
  2025-10-02  7:32 ` [PATCH mm-new 2/2] mm/khugepaged: merge PTE scanning logic into a new helper Lance Yang
  0 siblings, 2 replies; 18+ messages in thread
From: Lance Yang @ 2025-10-02  7:32 UTC (permalink / raw)
  To: akpm, david, lorenzo.stoakes
  Cc: ziy, baolin.wang, Liam.Howlett, npache, ryan.roberts, dev.jain,
	baohua, ioworker0, richard.weiyang, linux-kernel, linux-mm

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



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-10-05  2:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-02  7:32 [PATCH mm-new 0/2] mm/khugepaged: refactor and merge PTE scanning logic Lance Yang
2025-10-02  7:32 ` [PATCH mm-new 1/2] mm/khugepaged: optimize PTE scanning with if-else-if-else-if chain Lance Yang
2025-10-03 13:21   ` Wei Yang
2025-10-03 16:33   ` Dev Jain
2025-10-04  3:08     ` Lance Yang
2025-10-03 17:04   ` Zi Yan
2025-10-02  7:32 ` [PATCH mm-new 2/2] mm/khugepaged: merge PTE scanning logic into a new helper Lance Yang
2025-10-03 17:05   ` Dev Jain
2025-10-04  3:03     ` Lance Yang
2025-10-04  4:42       ` Dev Jain
2025-10-04  5:24         ` Lance Yang
2025-10-04  9:42     ` Wei Yang
2025-10-04 13:11       ` Dev Jain
2025-10-05  2:35         ` Lance Yang
2025-10-05  2:38           ` Zi Yan
2025-10-05  2:44             ` Lance Yang
2025-10-03 17:11   ` Zi Yan
2025-10-04  3:06     ` Lance Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox