|
@@ -2,6 +2,7 @@
|
|
|
#define _LINUX_HUGETLB_H
|
|
|
|
|
|
#include <linux/fs.h>
|
|
|
+#include <linux/hugetlb_inline.h>
|
|
|
|
|
|
struct ctl_table;
|
|
|
struct user_struct;
|
|
@@ -14,11 +15,6 @@ struct user_struct;
|
|
|
|
|
|
int PageHuge(struct page *page);
|
|
|
|
|
|
-static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
|
|
|
-{
|
|
|
- return vma->vm_flags & VM_HUGETLB;
|
|
|
-}
|
|
|
-
|
|
|
void reset_vma_resv_huge_pages(struct vm_area_struct *vma);
|
|
|
int hugetlb_sysctl_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *);
|
|
|
int hugetlb_overcommit_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *);
|
|
@@ -77,11 +73,6 @@ static inline int PageHuge(struct page *page)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
static inline void reset_vma_resv_huge_pages(struct vm_area_struct *vma)
|
|
|
{
|
|
|
}
|