Skip to contentSkip to conversation

mm-rmap-remove-page_add_file_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: remove page_add_file_rmap()
has been removed from the -mm tree. Its filename was
mm-rmap-remove-page_add_file_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: remove page_add_file_rmap()
Date: Wed, 20 Dec 2023 23:44:36 +0100

All users are gone, let's remove it.

---

 include/linux/rmap.h |    2 --
 mm/rmap.c            |   21 ---------------------
 2 files changed, 23 deletions(-)
include/linux/rmap.h renamed from include/linux/rmap.h~mm-rmap-remove-page_add_file_rmap +0 -2
@@ -237,8 +237,6 @@ void page_add_anon_rmap(struct page *, s
 		unsigned long address, rmap_t flags);
 void folio_add_new_anon_rmap(struct folio *, struct vm_area_struct *,
 		unsigned long address);
-void page_add_file_rmap(struct page *, struct vm_area_struct *,
-		bool compound);
 void folio_add_file_rmap_ptes(struct folio *, struct page *, int nr_pages,
 		struct vm_area_struct *);
 #define folio_add_file_rmap_pte(folio, page, vma) \
mm/rmap.c renamed from mm/rmap.c~mm-rmap-remove-page_add_file_rmap +0 -21
@@ -1468,27 +1468,6 @@ void folio_add_file_rmap_pmd(struct foli
 }
 
 /**
- * page_add_file_rmap - add pte mapping to a file page
- * @page:	the page to add the mapping to
- * @vma:	the vm area in which the mapping is added
- * @compound:	charge the page as compound or small page
- *
- * The caller needs to hold the pte lock.
- */
-void page_add_file_rmap(struct page *page, struct vm_area_struct *vma,
-		bool compound)
-{
-	struct folio *folio = page_folio(page);
-
-	VM_WARN_ON_ONCE_PAGE(compound && !PageTransHuge(page), page);
-
-	if (likely(!compound))
-		folio_add_file_rmap_pte(folio, page, vma);
-	else
-		folio_add_file_rmap_pmd(folio, page, vma);
-}
-
-/**
  * page_remove_rmap - take down pte mapping from a page
  * @page:	page to remove mapping from
  * @vma:	the vm area from which the mapping is removed

_

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