aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hugetlb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r--include/linux/hugetlb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index 58c0de32e7f0..b2c17f62cacb 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -50,7 +50,10 @@ struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address,
50 int write); 50 int write);
51struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address, 51struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address,
52 pmd_t *pmd, int write); 52 pmd_t *pmd, int write);
53struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address,
54 pud_t *pud, int write);
53int pmd_huge(pmd_t pmd); 55int pmd_huge(pmd_t pmd);
56int pud_huge(pud_t pmd);
54void hugetlb_change_protection(struct vm_area_struct *vma, 57void hugetlb_change_protection(struct vm_area_struct *vma,
55 unsigned long address, unsigned long end, pgprot_t newprot); 58 unsigned long address, unsigned long end, pgprot_t newprot);
56 59
@@ -78,8 +81,10 @@ static inline unsigned long hugetlb_total_pages(void)
78#define hugetlb_report_meminfo(buf) 0 81#define hugetlb_report_meminfo(buf) 0
79#define hugetlb_report_node_meminfo(n, buf) 0 82#define hugetlb_report_node_meminfo(n, buf) 0
80#define follow_huge_pmd(mm, addr, pmd, write) NULL 83#define follow_huge_pmd(mm, addr, pmd, write) NULL
84#define follow_huge_pud(mm, addr, pud, write) NULL
81#define prepare_hugepage_range(file, addr, len) (-EINVAL) 85#define prepare_hugepage_range(file, addr, len) (-EINVAL)
82#define pmd_huge(x) 0 86#define pmd_huge(x) 0
87#define pud_huge(x) 0
83#define is_hugepage_only_range(mm, addr, len) 0 88#define is_hugepage_only_range(mm, addr, len) 0
84#define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; }) 89#define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; })
85#define hugetlb_fault(mm, vma, addr, write) ({ BUG(); 0; }) 90#define hugetlb_fault(mm, vma, addr, write) ({ BUG(); 0; })