|
@@ -270,6 +270,16 @@ static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb)
|
|
|
return sb->s_fs_info;
|
|
|
}
|
|
|
|
|
|
+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);
|
|
|
+}
|
|
|
+
|
|
|
extern const struct file_operations hugetlbfs_file_operations;
|
|
|
extern const struct vm_operations_struct hugetlb_vm_ops;
|
|
|
struct file *hugetlb_file_setup(const char *name, size_t size, vm_flags_t acct,
|