Re: [v2 00/16] mm: PMD-level swap entries for anonymous THPs

From: Usama Arif

Date: Tue Jun 09 2026 - 10:38:31 EST




On 02/06/2026 15:24, Usama Arif wrote:
> When reclaim swaps out a PMD-mapped anonymous THP today, the PMD is
> split into 512 PTE-level swap entries via TTU_SPLIT_HUGE_PMD before
> unmap.
>
> This series introduces a PMD-level swap entry. The huge mapping is
> preserved across the swap round-trip, and do_huge_pmd_swap_page()
> resolves the entire 2 MB region in a single fault on swap-in,
> no khugepaged involvement is needed. swap_map metadata is identical
> either way (512 single-slot counts), so the PTE split buys nothing
> on the swap side, it is purely a page-table representation change.
>

Hello!

Just following up if there were any reviews/comments on this series!

I know its a large series but was just checking if there was any
feedback?

Thanks!
Usama