mm-swapfile-use-folio_page_swap_entry.patch removed from -mm tree
The quilt patch titled
Subject: mm/swapfile: use folio_page_swap_entry()
has been removed from the -mm tree. Its filename was
mm-swapfile-use-folio_page_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/swapfile: use folio_page_swap_entry()
Date: Tue, 08 Sep 2026 11:16:35 -0400
folio_dup_swap() and folio_put_swap() open-code the swap entry computation from folio->swap and folio_page_idx(). Use folio_page_swap_entry() instead.
No functional change.
---
mm/swapfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-swapfile-use-folio_page_swap_entry +2 -2
@@ -1822,7 +1822,7 @@ int folio_dup_swap(struct folio *folio,VM_WARN_ON_FOLIO (!folio_test_swapcache (folio), folio);if (page) { - entry.val +=folio_page_idx (folio, page); + entry =folio_page_swap_entry (folio, page); nr_pages =1 ; }
@@ -1849,7 +1849,7 @@ void folio_put_swap(struct folio *folio,VM_WARN_ON_FOLIO (!folio_test_swapcache (folio), folio);if (page) { - entry.val +=folio_page_idx (folio, page); + entry =folio_page_swap_entry (folio, page); nr_pages =1 ; }
_
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