diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/huge_mm.h | 2 | ||||
| -rw-r--r-- | include/linux/hugetlb.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index 528454c2caa9..26ee56c80dc7 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h | |||
| @@ -123,7 +123,7 @@ extern void __split_huge_page_pmd(struct vm_area_struct *vma, | |||
| 123 | } while (0) | 123 | } while (0) |
| 124 | extern void split_huge_page_pmd_mm(struct mm_struct *mm, unsigned long address, | 124 | extern void split_huge_page_pmd_mm(struct mm_struct *mm, unsigned long address, |
| 125 | pmd_t *pmd); | 125 | pmd_t *pmd); |
| 126 | #if HPAGE_PMD_ORDER > MAX_ORDER | 126 | #if HPAGE_PMD_ORDER >= MAX_ORDER |
| 127 | #error "hugepages can't be allocated by the buddy allocator" | 127 | #error "hugepages can't be allocated by the buddy allocator" |
| 128 | #endif | 128 | #endif |
| 129 | extern int hugepage_madvise(struct vm_area_struct *vma, | 129 | extern int hugepage_madvise(struct vm_area_struct *vma, |
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 6b4890fa57e7..981546ad231c 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -69,6 +69,10 @@ void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed); | |||
| 69 | int dequeue_hwpoisoned_huge_page(struct page *page); | 69 | int dequeue_hwpoisoned_huge_page(struct page *page); |
| 70 | void copy_huge_page(struct page *dst, struct page *src); | 70 | void copy_huge_page(struct page *dst, struct page *src); |
| 71 | 71 | ||
| 72 | #ifdef CONFIG_ARCH_WANT_HUGE_PMD_SHARE | ||
| 73 | pte_t *huge_pmd_share(struct mm_struct *mm, unsigned long addr, pud_t *pud); | ||
| 74 | #endif | ||
| 75 | |||
| 72 | extern unsigned long hugepages_treat_as_movable; | 76 | extern unsigned long hugepages_treat_as_movable; |
| 73 | extern const unsigned long hugetlb_zero, hugetlb_infinity; | 77 | extern const unsigned long hugetlb_zero, hugetlb_infinity; |
| 74 | extern int sysctl_hugetlb_shm_group; | 78 | extern int sysctl_hugetlb_shm_group; |
