mm-swap-fix-reclaim-offset-calculation-error-during-allocation.patch removed from -mm tree
The quilt patch titled
Subject: mm, swap: fix reclaim offset calculation error during allocation
has been removed from the -mm tree. Its filename was
mm-swap-fix-reclaim-offset-calculation-error-during-allocation.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Kairui Song <[email protected]>
Subject: mm, swap: fix reclaim offset calculation error during allocation
Date: Thu, 30 Jan 2025 19:51:31 +0800
There is a code error that will cause the swap entry allocator to reclaim and check the whole cluster with an unexpected tail offset instead of the part that needs to be reclaimed. This may cause corruption of the swap map, so fix it.
---
mm/swapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-swap-fix-reclaim-offset-calculation-error-during-allocation +1 -1
@@ -794,7 +794,7 @@ static unsigned int alloc_swap_scan_clusif (!cluster_scan_range (si, ci, offset, nr_pages, &need_reclaim))continue ;if (need_reclaim) { - ret =cluster_reclaim_range (si, ci, start, end); + ret =cluster_reclaim_range (si, ci, offset, offset + nr_pages);/* * Reclaim drops ci->lock and cluster could be used * by another order. Not checking flag as off-list
_
Patches currently in -mm which might be from [email protected] are