Skip to contentSkip to conversation

mm-rmap-introduce-folio_try_dup_anon_rmap_.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/rmap: introduce folio_try_dup_anon_rmap_[pte|ptes|pmd]()
has been removed from the -mm tree. Its filename was
mm-rmap-introduce-folio_try_dup_anon_rmap_.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/rmap: introduce folio_try_dup_anon_rmap_[pte|ptes|pmd]()
Date: Wed, 20 Dec 2023 23:44:58 +0100

The last user of page_needs_cow_for_dma() and __page_dup_rmap() are gone, remove them.

Add folio_try_dup_anon_rmap_ptes() right away, we want to perform rmap baching during fork() soon.

---

 include/linux/mm.h   |    6 -
 include/linux/rmap.h |  150 ++++++++++++++++++++++++++++-------------
 2 files changed, 106 insertions(+), 50 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-rmap-introduce-folio_try_dup_anon_rmap_ +0 -6
@@ -1975,12 +1975,6 @@ static inline bool folio_needs_cow_for_d
 	return folio_maybe_dma_pinned(folio);
 }
 
-static inline bool page_needs_cow_for_dma(struct vm_area_struct *vma,
-					  struct page *page)
-{
-	return folio_needs_cow_for_dma(vma, page_folio(page));
-}
-
 /**
  * is_zero_page - Query if a page is a zero page
  * @page: The page to query
include/linux/rmap.h renamed from include/linux/rmap.h~mm-rmap-introduce-folio_try_dup_anon_rmap_ +106 -44

174 lines not on this page · raw message

_

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