mm-ksm-use-ksm_get_folio-in-scan_get_next_rmap_item.patch removed from -mm tree
The quilt patch titled
Subject: mm/ksm: use ksm_get_folio in scan_get_next_rmap_item
has been removed from the -mm tree. Its filename was
mm-ksm-use-ksm_get_folio-in-scan_get_next_rmap_item.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: "Alex Shi (tencent)" <[email protected]>
Subject: mm/ksm: use ksm_get_folio in scan_get_next_rmap_item
Date: Thu, 11 Apr 2024 14:17:07 +0800
Save a compound_head call.
Signed-off-by Alex Shi (tencent) <[email protected]>
Reviewed-by David Hildenbrand <[email protected]>
Cc Izik Eidus <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Chris Wright <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/ksm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
mm/ksm.c renamed from mm/ksm.c~mm-ksm-use-ksm_get_folio-in-scan_get_next_rmap_item +5 -5
@@ -2611,14 +2611,14 @@ static struct ksm_rmap_item *scan_get_ne*/ if (!ksm_merge_across_nodes) {struct ksm_stable_node *stable_node, *next; -struct page *page; +struct folio *folio;list_for_each_entry_safe (stable_node, next, &migrate_nodes, list) { - page =get_ksm_page (stable_node, -GET_KSM_PAGE_NOLOCK ); -if (page) -put_page (page); + folio =ksm_get_folio (stable_node, +GET_KSM_PAGE_NOLOCK ); +if (folio) +folio_put (folio);cond_resched (); } }
_
Patches currently in -mm which might be from [email protected] are