mm-swapfile-use-plist_for_each_entry-in-__folio_throttle_swaprate.patch removed from -mm tree
The quilt patch titled
Subject: mm/swapfile: use plist_for_each_entry in __folio_throttle_swaprate
has been removed from the -mm tree. Its filename was
mm-swapfile-use-plist_for_each_entry-in-__folio_throttle_swaprate.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: Youngjun Park <[email protected]>
Subject: mm/swapfile: use plist_for_each_entry in __folio_throttle_swaprate
Date: Thu, 27 Nov 2025 19:03:03 +0900
The loop breaks immediately after finding the first swap device and never modifies the list. Replace plist_for_each_entry_safe() with plist_for_each_entry() and remove the unused next variable.
---
mm/swapfile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-swapfile-use-plist_for_each_entry-in-__folio_throttle_swaprate +2 -3
@@ -4023,7 +4023,7 @@ static bool __has_usable_swap(void)void __folio_throttle_swaprate (struct folio *folio,gfp_t gfp) { -struct swap_info_struct *si, *next; +struct swap_info_struct *si;if (!(gfp & __GFP_IO))return ;
@@ -4042,8 +4042,7 @@ void __folio_throttle_swaprate(struct foreturn ;spin_lock (&swap_avail_lock); -plist_for_each_entry_safe (si, next, &swap_avail_head, - avail_list) { +plist_for_each_entry (si, &swap_avail_head, avail_list) {if (si->bdev) {blkcg_schedule_throttle (si->bdev->bd_disk, true);break ;
_
Patches currently in -mm which might be from [email protected] are