mm-ksm-add-folio_set_stable_node.patch removed from -mm tree
The quilt patch titled
Subject: mm/ksm: add folio_set_stable_node
has been removed from the -mm tree. Its filename was
mm-ksm-add-folio_set_stable_node.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: add folio_set_stable_node
Date: Thu, 11 Apr 2024 14:17:04 +0800
Turn set_page_stable_node() into a wrapper folio_set_stable_node, and then use it to replace the former. we will merge them together after all place converted to folio.
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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
mm/ksm.c renamed from mm/ksm.c~mm-ksm-add-folio_set_stable_node +7 -1
@@ -1109,6 +1109,12 @@ static inline void set_page_stable_node( page->mapping = (void *)((unsigned long )stable_node |PAGE_MAPPING_KSM ); } +static inline void folio_set_stable_node (struct folio *folio, +struct ksm_stable_node *stable_node) +{ +set_page_stable_node (&folio->page, stable_node); +} +#ifdef CONFIG_SYSFS /* * Only called through the sysfs control interface:
@@ -3241,7 +3247,7 @@ void folio_migrate_ksm(struct folio *new* has gone stale (or that folio_test_swapcache has been cleared). */ smp_wmb (); - set_page_stable_node(&folio->page, NULL); + folio_set_stable_node(folio, NULL); } }#endif /* CONFIG_MIGRATION */
_
Patches currently in -mm which might be from [email protected] are