aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hugetlb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r--include/linux/hugetlb.h12
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
115enum {
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
116struct hugetlbfs_config { 124struct 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)
150extern const struct file_operations hugetlbfs_file_operations; 158extern const struct file_operations hugetlbfs_file_operations;
151extern struct vm_operations_struct hugetlb_vm_ops; 159extern struct vm_operations_struct hugetlb_vm_ops;
152struct file *hugetlb_file_setup(const char *name, size_t size, int acct, 160struct 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);
154int hugetlb_get_quota(struct address_space *mapping, long delta); 162int hugetlb_get_quota(struct address_space *mapping, long delta);
155void hugetlb_put_quota(struct address_space *mapping, long delta); 163void 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