diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hugetlb.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index fa83836b63d2..cafe73eecb05 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -20,7 +20,6 @@ void unmap_hugepage_range(struct vm_area_struct *, unsigned long, unsigned long) | |||
20 | int hugetlb_prefault(struct address_space *, struct vm_area_struct *); | 20 | int hugetlb_prefault(struct address_space *, struct vm_area_struct *); |
21 | int hugetlb_report_meminfo(char *); | 21 | int hugetlb_report_meminfo(char *); |
22 | int hugetlb_report_node_meminfo(int, char *); | 22 | int hugetlb_report_node_meminfo(int, char *); |
23 | int is_hugepage_mem_enough(size_t); | ||
24 | unsigned long hugetlb_total_pages(void); | 23 | unsigned long hugetlb_total_pages(void); |
25 | struct page *alloc_huge_page(struct vm_area_struct *, unsigned long); | 24 | struct page *alloc_huge_page(struct vm_area_struct *, unsigned long); |
26 | void free_huge_page(struct page *); | 25 | void free_huge_page(struct page *); |
@@ -89,7 +88,6 @@ static inline unsigned long hugetlb_total_pages(void) | |||
89 | #define copy_hugetlb_page_range(src, dst, vma) ({ BUG(); 0; }) | 88 | #define copy_hugetlb_page_range(src, dst, vma) ({ BUG(); 0; }) |
90 | #define hugetlb_prefault(mapping, vma) ({ BUG(); 0; }) | 89 | #define hugetlb_prefault(mapping, vma) ({ BUG(); 0; }) |
91 | #define unmap_hugepage_range(vma, start, end) BUG() | 90 | #define unmap_hugepage_range(vma, start, end) BUG() |
92 | #define is_hugepage_mem_enough(size) 0 | ||
93 | #define hugetlb_report_meminfo(buf) 0 | 91 | #define hugetlb_report_meminfo(buf) 0 |
94 | #define hugetlb_report_node_meminfo(n, buf) 0 | 92 | #define hugetlb_report_node_meminfo(n, buf) 0 |
95 | #define follow_huge_pmd(mm, addr, pmd, write) NULL | 93 | #define follow_huge_pmd(mm, addr, pmd, write) NULL |
@@ -132,6 +130,8 @@ struct hugetlbfs_sb_info { | |||
132 | 130 | ||
133 | struct hugetlbfs_inode_info { | 131 | struct hugetlbfs_inode_info { |
134 | struct shared_policy policy; | 132 | struct shared_policy policy; |
133 | /* Protected by the (global) hugetlb_lock */ | ||
134 | unsigned long prereserved_hpages; | ||
135 | struct inode vfs_inode; | 135 | struct inode vfs_inode; |
136 | }; | 136 | }; |
137 | 137 | ||
@@ -148,6 +148,10 @@ static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb) | |||
148 | extern struct file_operations hugetlbfs_file_operations; | 148 | extern struct file_operations hugetlbfs_file_operations; |
149 | extern struct vm_operations_struct hugetlb_vm_ops; | 149 | extern struct vm_operations_struct hugetlb_vm_ops; |
150 | struct file *hugetlb_zero_setup(size_t); | 150 | struct file *hugetlb_zero_setup(size_t); |
151 | int hugetlb_extend_reservation(struct hugetlbfs_inode_info *info, | ||
152 | unsigned long atleast_hpages); | ||
153 | void hugetlb_truncate_reservation(struct hugetlbfs_inode_info *info, | ||
154 | unsigned long atmost_hpages); | ||
151 | int hugetlb_get_quota(struct address_space *mapping); | 155 | int hugetlb_get_quota(struct address_space *mapping); |
152 | void hugetlb_put_quota(struct address_space *mapping); | 156 | void hugetlb_put_quota(struct address_space *mapping); |
153 | 157 | ||