提交 b39424e2 编写于 作者: J Josef Sipek 提交者: Linus Torvalds

[PATCH] struct path: convert hugetlbfs

Signed-off-by: NJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 471b17e7
...@@ -58,7 +58,7 @@ static void huge_pagevec_release(struct pagevec *pvec) ...@@ -58,7 +58,7 @@ static void huge_pagevec_release(struct pagevec *pvec)
static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma) static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
{ {
struct inode *inode = file->f_dentry->d_inode; struct inode *inode = file->f_path.dentry->d_inode;
loff_t len, vma_len; loff_t len, vma_len;
int ret; int ret;
...@@ -774,8 +774,8 @@ struct file *hugetlb_zero_setup(size_t size) ...@@ -774,8 +774,8 @@ struct file *hugetlb_zero_setup(size_t size)
d_instantiate(dentry, inode); d_instantiate(dentry, inode);
inode->i_size = size; inode->i_size = size;
inode->i_nlink = 0; inode->i_nlink = 0;
file->f_vfsmnt = mntget(hugetlbfs_vfsmount); file->f_path.mnt = mntget(hugetlbfs_vfsmount);
file->f_dentry = dentry; file->f_path.dentry = dentry;
file->f_mapping = inode->i_mapping; file->f_mapping = inode->i_mapping;
file->f_op = &hugetlbfs_file_operations; file->f_op = &hugetlbfs_file_operations;
file->f_mode = FMODE_WRITE | FMODE_READ; file->f_mode = FMODE_WRITE | FMODE_READ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册