aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/hugetlbpage.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/hugetlbpage.c')
-rw-r--r--arch/mips/mm/hugetlbpage.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/mips/mm/hugetlbpage.c b/arch/mips/mm/hugetlbpage.c
index 4ec8ee10d371..06e0f421b41b 100644
--- a/arch/mips/mm/hugetlbpage.c
+++ b/arch/mips/mm/hugetlbpage.c
@@ -68,12 +68,6 @@ int is_aligned_hugepage_range(unsigned long addr, unsigned long len)
68 return 0; 68 return 0;
69} 69}
70 70
71struct page *
72follow_huge_addr(struct mm_struct *mm, unsigned long address, int write)
73{
74 return ERR_PTR(-EINVAL);
75}
76
77int pmd_huge(pmd_t pmd) 71int pmd_huge(pmd_t pmd)
78{ 72{
79 return (pmd_val(pmd) & _PAGE_HUGE) != 0; 73 return (pmd_val(pmd) & _PAGE_HUGE) != 0;
@@ -83,15 +77,3 @@ int pud_huge(pud_t pud)
83{ 77{
84 return (pud_val(pud) & _PAGE_HUGE) != 0; 78 return (pud_val(pud) & _PAGE_HUGE) != 0;
85} 79}
86
87struct page *
88follow_huge_pmd(struct mm_struct *mm, unsigned long address,
89 pmd_t *pmd, int write)
90{
91 struct page *page;
92
93 page = pte_page(*(pte_t *)pmd);
94 if (page)
95 page += ((address & ~HPAGE_MASK) >> PAGE_SHIFT);
96 return page;
97}