|
@@ -10,6 +10,7 @@
|
|
|
#include <asm/tlbflush.h>
|
|
#include <asm/tlbflush.h>
|
|
|
|
|
|
|
|
struct ctl_table;
|
|
struct ctl_table;
|
|
|
|
|
+struct user_struct;
|
|
|
|
|
|
|
|
int PageHuge(struct page *page);
|
|
int PageHuge(struct page *page);
|
|
|
|
|
|
|
@@ -146,7 +147,8 @@ static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb)
|
|
|
|
|
|
|
|
extern const struct file_operations hugetlbfs_file_operations;
|
|
extern const struct file_operations hugetlbfs_file_operations;
|
|
|
extern struct vm_operations_struct hugetlb_vm_ops;
|
|
extern struct vm_operations_struct hugetlb_vm_ops;
|
|
|
-struct file *hugetlb_file_setup(const char *name, size_t, int);
|
|
|
|
|
|
|
+struct file *hugetlb_file_setup(const char *name, size_t size, int acct,
|
|
|
|
|
+ struct user_struct **user);
|
|
|
int hugetlb_get_quota(struct address_space *mapping, long delta);
|
|
int hugetlb_get_quota(struct address_space *mapping, long delta);
|
|
|
void hugetlb_put_quota(struct address_space *mapping, long delta);
|
|
void hugetlb_put_quota(struct address_space *mapping, long delta);
|
|
|
|
|
|
|
@@ -168,7 +170,7 @@ static inline void set_file_hugepages(struct file *file)
|
|
|
|
|
|
|
|
#define is_file_hugepages(file) 0
|
|
#define is_file_hugepages(file) 0
|
|
|
#define set_file_hugepages(file) BUG()
|
|
#define set_file_hugepages(file) BUG()
|
|
|
-#define hugetlb_file_setup(name,size,acctflag) ERR_PTR(-ENOSYS)
|
|
|
|
|
|
|
+#define hugetlb_file_setup(name,size,acct,user) ERR_PTR(-ENOSYS)
|
|
|
|
|
|
|
|
#endif /* !CONFIG_HUGETLBFS */
|
|
#endif /* !CONFIG_HUGETLBFS */
|
|
|
|
|
|