mm-huge_memory-add-a-comment-to-the-open-coded-swap-entry.patch removed from -mm tree
The quilt patch titled
Subject: mm/huge_memory: add a comment to the open-coded swap entry
has been removed from the -mm tree. Its filename was
mm-huge_memory-add-a-comment-to-the-open-coded-swap-entry.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Tal Zussman <[email protected]>
Subject: mm/huge_memory: add a comment to the open-coded swap entry
Date: Tue, 08 Sep 2026 11:16:32 -0400
The swap entry of each new folio in __split_folio_to_order() is computed by hand from folio->swap rather than with folio_swap_entry(), because the folio's page count is not valid while it is being split. Add a comment explaining this.
---
mm/huge_memory.c | 4 ++++ 1 file changed, 4 insertions(+)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-add-a-comment-to-the-open-coded-swap-entry +4 -0
@@ -3762,6 +3762,10 @@ static void __split_folio_to_order(struc*/ VM_WARN_ON_ONCE_PAGE (new_folio->private, new_head); +/* +* Not all folio fields are valid during a split, so open-code +* the swap entry rather than using folio_swap_entry(). +*/ if (folio_test_swapcache (folio)) new_folio->swap.val = folio->swap.val + i;
_
Patches currently in -mm which might be from [email protected] are
mm-memcontrol-take-a-const-folio-in-folio_memcg-and-friends.patch mm-memcontrol-constify-obj_cgroup_memcg-and-friends.patch mm-memcontrol-constify-the-lruvec-helpers.patch mm-page_io-take-a-const-folio-in-bio_associate_blkg_from_folio.patch mm-memcontrol-constify-the-mem_cgroup-accessors.patch mm-page_counter-constify-page_counter_read-and-page_counter_margin.patch mm-memcontrol-constify-the-reclaim-protection-helpers.patch mm-memcontrol-constify-the-memcg-and-lruvec-stat-readers.patch mm-memcontrol-constify-the-swap-accounting-helpers.patch mm-memcontrol-constify-mem_cgroup_swappiness-and-mem_cgroup_get_max.patch mm-memcontrol-constify-the-zswap-and-socket-pressure-helpers.patch vmcore-convert-mmap_vmcore_fault-to-use-folios.patch