Re: [PATCH v7 00/29] mm: PMD-level swap entries for anonymous THPs

From: Usama Arif

Date: Mon Sep 14 2026 - 09:03:51 EST


On Mon, 14 Sep 2026 04:41:52 -0700 Usama Arif <usama.arif@xxxxxxxxx> wrote:

> When reclaim swaps out a PMD-mapped anonymous THP today, the PMD is
> split into HPAGE_PMD_NR PTE-level swap entries via TTU_SPLIT_HUGE_PMD
> before unmap. This series introduces a PMD-level swap entry so the
> huge mapping can survive the swap round-trip and do_huge_pmd_swap_page()
> can restore the PMD mapping directly on swap-in, without waiting for
> khugepaged to collapse the range later.
>

I somehow messed up sending the v7 series and only 10 patches got sent.
I have resent it in [1]. Apologies for this, please direct all reviews to [1].

[1] https://lore.kernel.org/all/20260914122950.3283997-1-usama.arif@xxxxxxxxx/