aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/hugetlbpage.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c
index 1c59d94f5942..da5eb3885702 100644
--- a/arch/powerpc/mm/hugetlbpage.c
+++ b/arch/powerpc/mm/hugetlbpage.c
@@ -385,17 +385,6 @@ follow_huge_pmd(struct mm_struct *mm, unsigned long address,
385 return NULL; 385 return NULL;
386} 386}
387 387
388static inline void get_huge_page_tail(struct page *page)
389{
390 /*
391 * __split_huge_page_refcount() cannot run
392 * from under us.
393 */
394 VM_BUG_ON(page_mapcount(page) < 0);
395 VM_BUG_ON(atomic_read(&page->_count) != 0);
396 atomic_inc(&page->_mapcount);
397}
398
399static noinline int gup_hugepte(pte_t *ptep, unsigned long sz, unsigned long addr, 388static noinline int gup_hugepte(pte_t *ptep, unsigned long sz, unsigned long addr,
400 unsigned long end, int write, struct page **pages, int *nr) 389 unsigned long end, int write, struct page **pages, int *nr)
401{ 390{