diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-09-14 00:16:56 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-09-14 00:16:56 -0400 |
| commit | fc8e1ead9314cf0e0f1922e661428b93d3a50d88 (patch) | |
| tree | f3cb97c4769b74f6627a59769f1ed5c92a13c58a /include/linux/hugetlb.h | |
| parent | 2bcaa6a4238094c5695d5b1943078388d82d3004 (diff) | |
| parent | 9de48cc300fb10f7d9faa978670becf5e352462a (diff) | |
Merge branch 'next' into for-linus
Diffstat (limited to 'include/linux/hugetlb.h')
| -rw-r--r-- | include/linux/hugetlb.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 03be7f29ca01..5cbc620bdfe0 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -10,6 +10,9 @@ | |||
| 10 | #include <asm/tlbflush.h> | 10 | #include <asm/tlbflush.h> |
| 11 | 11 | ||
| 12 | struct ctl_table; | 12 | struct ctl_table; |
| 13 | struct user_struct; | ||
| 14 | |||
| 15 | int PageHuge(struct page *page); | ||
| 13 | 16 | ||
| 14 | static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) | 17 | static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) |
| 15 | { | 18 | { |
| @@ -31,7 +34,7 @@ void hugetlb_report_meminfo(struct seq_file *); | |||
| 31 | int hugetlb_report_node_meminfo(int, char *); | 34 | int hugetlb_report_node_meminfo(int, char *); |
| 32 | unsigned long hugetlb_total_pages(void); | 35 | unsigned long hugetlb_total_pages(void); |
| 33 | int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, | 36 | int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, |
| 34 | unsigned long address, int write_access); | 37 | unsigned long address, unsigned int flags); |
| 35 | int hugetlb_reserve_pages(struct inode *inode, long from, long to, | 38 | int hugetlb_reserve_pages(struct inode *inode, long from, long to, |
| 36 | struct vm_area_struct *vma, | 39 | struct vm_area_struct *vma, |
| 37 | int acctflags); | 40 | int acctflags); |
| @@ -61,6 +64,11 @@ void hugetlb_change_protection(struct vm_area_struct *vma, | |||
| 61 | 64 | ||
| 62 | #else /* !CONFIG_HUGETLB_PAGE */ | 65 | #else /* !CONFIG_HUGETLB_PAGE */ |
| 63 | 66 | ||
| 67 | static inline int PageHuge(struct page *page) | ||
| 68 | { | ||
| 69 | return 0; | ||
| 70 | } | ||
| 71 | |||
| 64 | static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) | 72 | static inline int is_vm_hugetlb_page(struct vm_area_struct *vma) |
| 65 | { | 73 | { |
| 66 | return 0; | 74 | return 0; |
| @@ -91,7 +99,7 @@ static inline void hugetlb_report_meminfo(struct seq_file *m) | |||
| 91 | #define pud_huge(x) 0 | 99 | #define pud_huge(x) 0 |
| 92 | #define is_hugepage_only_range(mm, addr, len) 0 | 100 | #define is_hugepage_only_range(mm, addr, len) 0 |
| 93 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; }) | 101 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; }) |
| 94 | #define hugetlb_fault(mm, vma, addr, write) ({ BUG(); 0; }) | 102 | #define hugetlb_fault(mm, vma, addr, flags) ({ BUG(); 0; }) |
| 95 | 103 | ||
| 96 | #define hugetlb_change_protection(vma, address, end, newprot) | 104 | #define hugetlb_change_protection(vma, address, end, newprot) |
| 97 | 105 | ||
| @@ -139,7 +147,8 @@ static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb) | |||
| 139 | 147 | ||
| 140 | extern const struct file_operations hugetlbfs_file_operations; | 148 | extern const struct file_operations hugetlbfs_file_operations; |
| 141 | extern struct vm_operations_struct hugetlb_vm_ops; | 149 | extern struct vm_operations_struct hugetlb_vm_ops; |
| 142 | struct file *hugetlb_file_setup(const char *name, size_t, int); | 150 | struct file *hugetlb_file_setup(const char *name, size_t size, int acct, |
| 151 | struct user_struct **user); | ||
| 143 | int hugetlb_get_quota(struct address_space *mapping, long delta); | 152 | int hugetlb_get_quota(struct address_space *mapping, long delta); |
| 144 | void hugetlb_put_quota(struct address_space *mapping, long delta); | 153 | void hugetlb_put_quota(struct address_space *mapping, long delta); |
| 145 | 154 | ||
| @@ -161,7 +170,7 @@ static inline void set_file_hugepages(struct file *file) | |||
| 161 | 170 | ||
| 162 | #define is_file_hugepages(file) 0 | 171 | #define is_file_hugepages(file) 0 |
| 163 | #define set_file_hugepages(file) BUG() | 172 | #define set_file_hugepages(file) BUG() |
| 164 | #define hugetlb_file_setup(name,size,acctflag) ERR_PTR(-ENOSYS) | 173 | #define hugetlb_file_setup(name,size,acct,user) ERR_PTR(-ENOSYS) |
| 165 | 174 | ||
| 166 | #endif /* !CONFIG_HUGETLBFS */ | 175 | #endif /* !CONFIG_HUGETLBFS */ |
| 167 | 176 | ||
