diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hugetlb.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index e7f0fabfa1c2..f6505ad86657 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -112,6 +112,14 @@ static inline void hugetlb_report_meminfo(struct seq_file *m) | |||
| 112 | 112 | ||
| 113 | #endif /* !CONFIG_HUGETLB_PAGE */ | 113 | #endif /* !CONFIG_HUGETLB_PAGE */ |
| 114 | 114 | ||
| 115 | enum { | ||
| 116 | /* | ||
| 117 | * The file will be used as an shm file so shmfs accounting rules | ||
| 118 | * apply | ||
| 119 | */ | ||
| 120 | HUGETLB_SHMFS_INODE = 1, | ||
| 121 | }; | ||
| 122 | |||
| 115 | #ifdef CONFIG_HUGETLBFS | 123 | #ifdef CONFIG_HUGETLBFS |
| 116 | struct hugetlbfs_config { | 124 | struct hugetlbfs_config { |
| 117 | uid_t uid; | 125 | uid_t uid; |
| @@ -150,7 +158,7 @@ static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb) | |||
| 150 | extern const struct file_operations hugetlbfs_file_operations; | 158 | extern const struct file_operations hugetlbfs_file_operations; |
| 151 | extern struct vm_operations_struct hugetlb_vm_ops; | 159 | extern struct vm_operations_struct hugetlb_vm_ops; |
| 152 | struct file *hugetlb_file_setup(const char *name, size_t size, int acct, | 160 | struct file *hugetlb_file_setup(const char *name, size_t size, int acct, |
| 153 | struct user_struct **user); | 161 | struct user_struct **user, int creat_flags); |
| 154 | int hugetlb_get_quota(struct address_space *mapping, long delta); | 162 | int hugetlb_get_quota(struct address_space *mapping, long delta); |
| 155 | void hugetlb_put_quota(struct address_space *mapping, long delta); | 163 | void hugetlb_put_quota(struct address_space *mapping, long delta); |
| 156 | 164 | ||
| @@ -172,7 +180,7 @@ static inline void set_file_hugepages(struct file *file) | |||
| 172 | 180 | ||
| 173 | #define is_file_hugepages(file) 0 | 181 | #define is_file_hugepages(file) 0 |
| 174 | #define set_file_hugepages(file) BUG() | 182 | #define set_file_hugepages(file) BUG() |
| 175 | #define hugetlb_file_setup(name,size,acct,user) ERR_PTR(-ENOSYS) | 183 | #define hugetlb_file_setup(name,size,acct,user,creat) ERR_PTR(-ENOSYS) |
| 176 | 184 | ||
| 177 | #endif /* !CONFIG_HUGETLBFS */ | 185 | #endif /* !CONFIG_HUGETLBFS */ |
| 178 | 186 | ||
