Skip to contentSkip to conversation

mm: drop page_check_address{,_transhuge}

PATCH New [email protected] 1 participant 1 message Feb 24, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 53/124 mm: drop page_check_address{,_transhuge}

From: "Kirill A. Shutemov" <[email protected]>
Subject: mm: drop page_check_address{,_transhuge}

All users are gone. Let's drop them.

Cc Andrea Arcangeli <[email protected]>
Cc Hillf Danton <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Oleg Nesterov <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Srikar Dronamraju <[email protected]>
Cc Vladimir Davydov <[email protected]>

---

 include/linux/rmap.h |   36 ----------
 mm/rmap.c            |  138 -----------------------------------------
 2 files changed, 174 deletions(-)
include/linux/rmap.h renamed from include/linux/rmap.h~mm-drop-page_check_address_transhuge +0 -36
diff -puN include/linux/rmap.h~mm-drop-page_check_address_transhuge include/linux/rmap.h
@@ -197,42 +197,6 @@ int page_referenced(struct page *, int i
 
 int try_to_unmap(struct page *, enum ttu_flags flags);
 
-/*
- * Used by uprobes to replace a userspace page safely
- */
-pte_t *__page_check_address(struct page *, struct mm_struct *,
-				unsigned long, spinlock_t **, int);
-
-static inline pte_t *page_check_address(struct page *page, struct mm_struct *mm,
-					unsigned long address,
-					spinlock_t **ptlp, int sync)
-{
-	pte_t *ptep;
-
-	__cond_lock(*ptlp, ptep = __page_check_address(page, mm, address,
-						       ptlp, sync));
-	return ptep;
-}
-
-/*
- * Used by idle page tracking to check if a page was referenced via page
- * tables.
- */
-#ifdef CONFIG_TRANSPARENT_HUGEPAGE
-bool page_check_address_transhuge(struct page *page, struct mm_struct *mm,
-				  unsigned long address, pmd_t **pmdp,
-				  pte_t **ptep, spinlock_t **ptlp);
-#else
-static inline bool page_check_address_transhuge(struct page *page,
-				struct mm_struct *mm, unsigned long address,
-				pmd_t **pmdp, pte_t **ptep, spinlock_t **ptlp)
-{
-	*ptep = page_check_address(page, mm, address, ptlp, 0);
-	*pmdp = NULL;
-	return !!*ptep;
-}
-#endif
-
 /* Avoid racy checks */
 #define PVMW_SYNC		(1 << 0)
 /* Look for migarion entries rather than present PTEs */
mm/rmap.c renamed from mm/rmap.c~mm-drop-page_check_address_transhuge +0 -137

140 lines not on this page · raw message