diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index b4570b62ab85..49b7053043ad 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -15,6 +15,7 @@ static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) | |||
15 | } | 15 | } |
16 | 16 | ||
17 | int hugetlb_sysctl_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); | 17 | int hugetlb_sysctl_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); |
18 | int hugetlb_treat_movable_handler(struct ctl_table *, int, struct file *, void __user *, size_t *, loff_t *); | ||
18 | int copy_hugetlb_page_range(struct mm_struct *, struct mm_struct *, struct vm_area_struct *); | 19 | int copy_hugetlb_page_range(struct mm_struct *, struct mm_struct *, struct vm_area_struct *); |
19 | int follow_hugetlb_page(struct mm_struct *, struct vm_area_struct *, struct page **, struct vm_area_struct **, unsigned long *, int *, int); | 20 | int follow_hugetlb_page(struct mm_struct *, struct vm_area_struct *, struct page **, struct vm_area_struct **, unsigned long *, int *, int); |
20 | void unmap_hugepage_range(struct vm_area_struct *, unsigned long, unsigned long); | 21 | void unmap_hugepage_range(struct vm_area_struct *, unsigned long, unsigned long); |
@@ -29,6 +30,7 @@ int hugetlb_reserve_pages(struct inode *inode, long from, long to); | |||
29 | void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed); | 30 | void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed); |
30 | 31 | ||
31 | extern unsigned long max_huge_pages; | 32 | extern unsigned long max_huge_pages; |
33 | extern unsigned long hugepages_treat_as_movable; | ||
32 | extern const unsigned long hugetlb_zero, hugetlb_infinity; | 34 | extern const unsigned long hugetlb_zero, hugetlb_infinity; |
33 | extern int sysctl_hugetlb_shm_group; | 35 | extern int sysctl_hugetlb_shm_group; |
34 | 36 | ||
@@ -163,7 +165,7 @@ static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb) | |||
163 | 165 | ||
164 | extern const struct file_operations hugetlbfs_file_operations; | 166 | extern const struct file_operations hugetlbfs_file_operations; |
165 | extern struct vm_operations_struct hugetlb_vm_ops; | 167 | extern struct vm_operations_struct hugetlb_vm_ops; |
166 | struct file *hugetlb_zero_setup(size_t); | 168 | struct file *hugetlb_file_setup(const char *name, size_t); |
167 | int hugetlb_get_quota(struct address_space *mapping); | 169 | int hugetlb_get_quota(struct address_space *mapping); |
168 | void hugetlb_put_quota(struct address_space *mapping); | 170 | void hugetlb_put_quota(struct address_space *mapping); |
169 | 171 | ||
@@ -185,7 +187,7 @@ static inline void set_file_hugepages(struct file *file) | |||
185 | 187 | ||
186 | #define is_file_hugepages(file) 0 | 188 | #define is_file_hugepages(file) 0 |
187 | #define set_file_hugepages(file) BUG() | 189 | #define set_file_hugepages(file) BUG() |
188 | #define hugetlb_zero_setup(size) ERR_PTR(-ENOSYS) | 190 | #define hugetlb_file_setup(name,size) ERR_PTR(-ENOSYS) |
189 | 191 | ||
190 | #endif /* !CONFIG_HUGETLBFS */ | 192 | #endif /* !CONFIG_HUGETLBFS */ |
191 | 193 | ||