aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r--include/linux/rmap.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h
index ebf3750e42b2..77d1ba57d495 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -216,6 +216,25 @@ static inline pte_t *page_check_address(struct page *page, struct mm_struct *mm,
216} 216}
217 217
218/* 218/*
219 * Used by idle page tracking to check if a page was referenced via page
220 * tables.
221 */
222#ifdef CONFIG_TRANSPARENT_HUGEPAGE
223bool page_check_address_transhuge(struct page *page, struct mm_struct *mm,
224 unsigned long address, pmd_t **pmdp,
225 pte_t **ptep, spinlock_t **ptlp);
226#else
227static inline bool page_check_address_transhuge(struct page *page,
228 struct mm_struct *mm, unsigned long address,
229 pmd_t **pmdp, pte_t **ptep, spinlock_t **ptlp)
230{
231 *ptep = page_check_address(page, mm, address, ptlp, 0);
232 *pmdp = NULL;
233 return !!*ptep;
234}
235#endif
236
237/*
219 * Used by swapoff to help locate where page is expected in vma. 238 * Used by swapoff to help locate where page is expected in vma.
220 */ 239 */
221unsigned long page_address_in_vma(struct page *, struct vm_area_struct *); 240unsigned long page_address_in_vma(struct page *, struct vm_area_struct *);