mm-rmap-introduce-folio_add_anon_rmap_.patch removed from -mm tree
The quilt patch titled
Subject: mm/rmap: introduce folio_add_anon_rmap_[pte|ptes|pmd]()
has been removed from the -mm tree. Its filename was
mm-rmap-introduce-folio_add_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_add_anon_rmap_[pte|ptes|pmd]()
Date: Wed, 20 Dec 2023 23:44:38 +0100
Let's mimic what we did with folio_add_file_rmap_*() so we can similarly replace page_add_anon_rmap() next.
Make the compiler always special-case on the granularity by using __always_inline.
For the PageAnonExclusive sanity checks, when adding a PMD mapping, we're now also checking each individual subpage covered by that PMD, instead of only the head page.
Note that the new functions ignore the RMAP_COMPOUND flag, which we will remove as soon as page_add_anon_rmap() is gone.
---
include/linux/rmap.h | 6 ++ mm/rmap.c | 122 +++++++++++++++++++++++++++-------------- 2 files changed, 89 insertions(+), 39 deletions(-)
include/linux/rmap.h renamed from include/linux/rmap.h~mm-rmap-introduce-folio_add_anon_rmap_ +6 -0
@@ -233,6 +233,12 @@ static inline void __folio_rmap_sanity_c* rmap interfaces called when adding or removing pte of page */ void folio_move_anon_rmap (struct folio *,struct vm_area_struct *); +void folio_add_anon_rmap_ptes (struct folio *,struct page *,int nr_pages, +struct vm_area_struct *,unsigned long address,rmap_t flags); +#define folio_add_anon_rmap_pte (folio, page, vma, address, flags) \ + folio_add_anon_rmap_ptes(folio, page, 1, vma, address, flags) +void folio_add_anon_rmap_pmd (struct folio *,struct page *, +struct vm_area_struct *,unsigned long address,rmap_t flags);void page_add_anon_rmap (struct page *,struct vm_area_struct *,unsigned long address,rmap_t flags); void folio_add_new_anon_rmap(struct folio *, struct vm_area_struct *,
mm/rmap.c renamed from mm/rmap.c~mm-rmap-introduce-folio_add_anon_rmap_ +83 -39
147 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are