diff options
Diffstat (limited to 'mm/hugetlb.c')
| -rw-r--r-- | mm/hugetlb.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index cdb64e4d238..0a0be33bb19 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -127,7 +127,7 @@ static inline struct hugepage_subpool *subpool_inode(struct inode *inode)  static inline struct hugepage_subpool *subpool_vma(struct vm_area_struct *vma)  { -	return subpool_inode(vma->vm_file->f_dentry->d_inode); +	return subpool_inode(file_inode(vma->vm_file));  }  /* @@ -2479,7 +2479,7 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,  	address = address & huge_page_mask(h);  	pgoff = ((address - vma->vm_start) >> PAGE_SHIFT) +  			vma->vm_pgoff; -	mapping = vma->vm_file->f_dentry->d_inode->i_mapping; +	mapping = file_inode(vma->vm_file)->i_mapping;  	/*  	 * Take the mapping lock for the duration of the table walk. As  |