diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index a79e80b689d8..185b14c9f021 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -17,6 +17,7 @@ static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) | |||
17 | return vma->vm_flags & VM_HUGETLB; | 17 | return vma->vm_flags & VM_HUGETLB; |
18 | } | 18 | } |
19 | 19 | ||
20 | void reset_vma_resv_huge_pages(struct vm_area_struct *vma); | ||
20 | int hugetlb_sysctl_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); | 21 | int hugetlb_sysctl_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); |
21 | int hugetlb_overcommit_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); | 22 | int hugetlb_overcommit_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); |
22 | int hugetlb_treat_movable_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); | 23 | int hugetlb_treat_movable_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); |
@@ -30,7 +31,8 @@ int hugetlb_report_node_meminfo(int, char *); | |||
30 | unsigned long hugetlb_total_pages(void); | 31 | unsigned long hugetlb_total_pages(void); |
31 | int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, | 32 | int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, |
32 | unsigned long address, int write_access); | 33 | unsigned long address, int write_access); |
33 | int hugetlb_reserve_pages(struct inode *inode, long from, long to); | 34 | int hugetlb_reserve_pages(struct inode *inode, long from, long to, |
35 | struct vm_area_struct *vma); | ||
34 | void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed); | 36 | void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed); |
35 | 37 | ||
36 | extern unsigned long max_huge_pages; | 38 | extern unsigned long max_huge_pages; |
@@ -58,6 +60,11 @@ static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) | |||
58 | { | 60 | { |
59 | return 0; | 61 | return 0; |
60 | } | 62 | } |
63 | |||
64 | static inline void reset_vma_resv_huge_pages(struct vm_area_struct *vma) | ||
65 | { | ||
66 | } | ||
67 | |||
61 | static inline unsigned long hugetlb_total_pages(void) | 68 | static inline unsigned long hugetlb_total_pages(void) |
62 | { | 69 | { |
63 | return 0; | 70 | return 0; |