aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index cdb64e4d238a..0a0be33bb199 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -127,7 +127,7 @@ static inline struct hugepage_subpool *subpool_inode(struct inode *inode)
127 127
128static inline struct hugepage_subpool *subpool_vma(struct vm_area_struct *vma) 128static inline struct hugepage_subpool *subpool_vma(struct vm_area_struct *vma)
129{ 129{
130 return subpool_inode(vma->vm_file->f_dentry->d_inode); 130 return subpool_inode(file_inode(vma->vm_file));
131} 131}
132 132
133/* 133/*
@@ -2479,7 +2479,7 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
2479 address = address & huge_page_mask(h); 2479 address = address & huge_page_mask(h);
2480 pgoff = ((address - vma->vm_start) >> PAGE_SHIFT) + 2480 pgoff = ((address - vma->vm_start) >> PAGE_SHIFT) +
2481 vma->vm_pgoff; 2481 vma->vm_pgoff;
2482 mapping = vma->vm_file->f_dentry->d_inode->i_mapping; 2482 mapping = file_inode(vma->vm_file)->i_mapping;
2483 2483
2484 /* 2484 /*
2485 * Take the mapping lock for the duration of the table walk. As 2485 * Take the mapping lock for the duration of the table walk. As