diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 225164842ab6..0c80d3f57a5b 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -87,7 +87,7 @@ struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address, | |||
87 | pud_t *pud, int write); | 87 | pud_t *pud, int write); |
88 | int pmd_huge(pmd_t pmd); | 88 | int pmd_huge(pmd_t pmd); |
89 | int pud_huge(pud_t pmd); | 89 | int pud_huge(pud_t pmd); |
90 | void hugetlb_change_protection(struct vm_area_struct *vma, | 90 | unsigned long hugetlb_change_protection(struct vm_area_struct *vma, |
91 | unsigned long address, unsigned long end, pgprot_t newprot); | 91 | unsigned long address, unsigned long end, pgprot_t newprot); |
92 | 92 | ||
93 | #else /* !CONFIG_HUGETLB_PAGE */ | 93 | #else /* !CONFIG_HUGETLB_PAGE */ |
@@ -132,7 +132,11 @@ static inline void copy_huge_page(struct page *dst, struct page *src) | |||
132 | { | 132 | { |
133 | } | 133 | } |
134 | 134 | ||
135 | #define hugetlb_change_protection(vma, address, end, newprot) | 135 | static inline unsigned long hugetlb_change_protection(struct vm_area_struct *vma, |
136 | unsigned long address, unsigned long end, pgprot_t newprot) | ||
137 | { | ||
138 | return 0; | ||
139 | } | ||
136 | 140 | ||
137 | static inline void __unmap_hugepage_range_final(struct mmu_gather *tlb, | 141 | static inline void __unmap_hugepage_range_final(struct mmu_gather *tlb, |
138 | struct vm_area_struct *vma, unsigned long start, | 142 | struct vm_area_struct *vma, unsigned long start, |
@@ -183,7 +187,8 @@ extern const struct file_operations hugetlbfs_file_operations; | |||
183 | extern const struct vm_operations_struct hugetlb_vm_ops; | 187 | extern const struct vm_operations_struct hugetlb_vm_ops; |
184 | struct file *hugetlb_file_setup(const char *name, unsigned long addr, | 188 | struct file *hugetlb_file_setup(const char *name, unsigned long addr, |
185 | size_t size, vm_flags_t acct, | 189 | size_t size, vm_flags_t acct, |
186 | struct user_struct **user, int creat_flags); | 190 | struct user_struct **user, int creat_flags, |
191 | int page_size_log); | ||
187 | 192 | ||
188 | static inline int is_file_hugepages(struct file *file) | 193 | static inline int is_file_hugepages(struct file *file) |
189 | { | 194 | { |
@@ -195,12 +200,14 @@ static inline int is_file_hugepages(struct file *file) | |||
195 | return 0; | 200 | return 0; |
196 | } | 201 | } |
197 | 202 | ||
203 | |||
198 | #else /* !CONFIG_HUGETLBFS */ | 204 | #else /* !CONFIG_HUGETLBFS */ |
199 | 205 | ||
200 | #define is_file_hugepages(file) 0 | 206 | #define is_file_hugepages(file) 0 |
201 | static inline struct file * | 207 | static inline struct file * |
202 | hugetlb_file_setup(const char *name, unsigned long addr, size_t size, | 208 | hugetlb_file_setup(const char *name, unsigned long addr, size_t size, |
203 | vm_flags_t acctflag, struct user_struct **user, int creat_flags) | 209 | vm_flags_t acctflag, struct user_struct **user, int creat_flags, |
210 | int page_size_log) | ||
204 | { | 211 | { |
205 | return ERR_PTR(-ENOSYS); | 212 | return ERR_PTR(-ENOSYS); |
206 | } | 213 | } |