|
@@ -128,15 +128,6 @@ enum {
|
|
};
|
|
};
|
|
|
|
|
|
#ifdef CONFIG_HUGETLBFS
|
|
#ifdef CONFIG_HUGETLBFS
|
|
-struct hugetlbfs_config {
|
|
|
|
- uid_t uid;
|
|
|
|
- gid_t gid;
|
|
|
|
- umode_t mode;
|
|
|
|
- long nr_blocks;
|
|
|
|
- long nr_inodes;
|
|
|
|
- struct hstate *hstate;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
struct hugetlbfs_sb_info {
|
|
struct hugetlbfs_sb_info {
|
|
long max_blocks; /* blocks allowed */
|
|
long max_blocks; /* blocks allowed */
|
|
long free_blocks; /* blocks free */
|
|
long free_blocks; /* blocks free */
|
|
@@ -146,17 +137,6 @@ struct hugetlbfs_sb_info {
|
|
struct hstate *hstate;
|
|
struct hstate *hstate;
|
|
};
|
|
};
|
|
|
|
|
|
-
|
|
|
|
-struct hugetlbfs_inode_info {
|
|
|
|
- struct shared_policy policy;
|
|
|
|
- struct inode vfs_inode;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-static inline struct hugetlbfs_inode_info *HUGETLBFS_I(struct inode *inode)
|
|
|
|
-{
|
|
|
|
- return container_of(inode, struct hugetlbfs_inode_info, vfs_inode);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb)
|
|
static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb)
|
|
{
|
|
{
|
|
return sb->s_fs_info;
|
|
return sb->s_fs_info;
|
|
@@ -179,14 +159,9 @@ static inline int is_file_hugepages(struct file *file)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static inline void set_file_hugepages(struct file *file)
|
|
|
|
-{
|
|
|
|
- file->f_op = &hugetlbfs_file_operations;
|
|
|
|
-}
|
|
|
|
#else /* !CONFIG_HUGETLBFS */
|
|
#else /* !CONFIG_HUGETLBFS */
|
|
|
|
|
|
#define is_file_hugepages(file) 0
|
|
#define is_file_hugepages(file) 0
|
|
-#define set_file_hugepages(file) BUG()
|
|
|
|
static inline struct file *hugetlb_file_setup(const char *name, size_t size,
|
|
static inline struct file *hugetlb_file_setup(const char *name, size_t size,
|
|
vm_flags_t acctflag, struct user_struct **user, int creat_flags)
|
|
vm_flags_t acctflag, struct user_struct **user, int creat_flags)
|
|
{
|
|
{
|