aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/hugetlb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 8536741f069b..de5d1dcf34fe 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -2480,7 +2480,8 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
2480 * from page cache lookup which is in HPAGE_SIZE units. 2480 * from page cache lookup which is in HPAGE_SIZE units.
2481 */ 2481 */
2482 address = address & huge_page_mask(h); 2482 address = address & huge_page_mask(h);
2483 pgoff = vma_hugecache_offset(h, vma, address); 2483 pgoff = ((address - vma->vm_start) >> PAGE_SHIFT) +
2484 vma->vm_pgoff;
2484 mapping = vma->vm_file->f_dentry->d_inode->i_mapping; 2485 mapping = vma->vm_file->f_dentry->d_inode->i_mapping;
2485 2486
2486 /* 2487 /*