Skip to contentSkip to conversation

mm-huge_memory-page_add_anon_rmap-folio_add_anon_rmap_pmd.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 29, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled

     Subject: mm/huge_memory: page_add_anon_rmap() -> folio_add_anon_rmap_pmd()

has been removed from the -mm tree. Its filename was
mm-huge_memory-page_add_anon_rmap-folio_add_anon_rmap_pmd.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: David Hildenbrand <[email protected]>
Subject: mm/huge_memory: page_add_anon_rmap() -> folio_add_anon_rmap_pmd()
Date: Wed, 20 Dec 2023 23:44:40 +0100

Let's convert remove_migration_pmd(). No need to set RMAP_COMPOUND, that we will remove soon.

---

 mm/huge_memory.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-page_add_anon_rmap-folio_add_anon_rmap_pmd +2 -2
@@ -3611,12 +3611,12 @@ void remove_migration_pmd(struct page_vm
 		pmde = pmd_mkdirty(pmde);
 
 	if (folio_test_anon(folio)) {
-		rmap_t rmap_flags = RMAP_COMPOUND;
+		rmap_t rmap_flags = RMAP_NONE;
 
 		if (!is_readable_migration_entry(entry))
 			rmap_flags |= RMAP_EXCLUSIVE;
 
-		page_add_anon_rmap(new, vma, haddr, rmap_flags);
+		folio_add_anon_rmap_pmd(folio, new, vma, haddr, rmap_flags);
 	} else {
 		folio_add_file_rmap_pmd(folio, new, vma);
 	}

_

Patches currently in -mm which might be from [email protected] are