aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/hugetlbfs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index 0706f5aac6a2..ed2c22340ad7 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -58,7 +58,7 @@ static void huge_pagevec_release(struct pagevec *pvec)
58 58
59static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma) 59static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
60{ 60{
61 struct inode *inode = file->f_dentry->d_inode; 61 struct inode *inode = file->f_path.dentry->d_inode;
62 loff_t len, vma_len; 62 loff_t len, vma_len;
63 int ret; 63 int ret;
64 64
@@ -774,8 +774,8 @@ struct file *hugetlb_zero_setup(size_t size)
774 d_instantiate(dentry, inode); 774 d_instantiate(dentry, inode);
775 inode->i_size = size; 775 inode->i_size = size;
776 inode->i_nlink = 0; 776 inode->i_nlink = 0;
777 file->f_vfsmnt = mntget(hugetlbfs_vfsmount); 777 file->f_path.mnt = mntget(hugetlbfs_vfsmount);
778 file->f_dentry = dentry; 778 file->f_path.dentry = dentry;
779 file->f_mapping = inode->i_mapping; 779 file->f_mapping = inode->i_mapping;
780 file->f_op = &hugetlbfs_file_operations; 780 file->f_op = &hugetlbfs_file_operations;
781 file->f_mode = FMODE_WRITE | FMODE_READ; 781 file->f_mode = FMODE_WRITE | FMODE_READ;