|
@@ -2315,8 +2315,7 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
|
|
* from page cache lookup which is in HPAGE_SIZE units.
|
|
* from page cache lookup which is in HPAGE_SIZE units.
|
|
*/
|
|
*/
|
|
address = address & huge_page_mask(h);
|
|
address = address & huge_page_mask(h);
|
|
- pgoff = ((address - vma->vm_start) >> PAGE_SHIFT)
|
|
|
|
- + (vma->vm_pgoff >> PAGE_SHIFT);
|
|
|
|
|
|
+ pgoff = vma_hugecache_offset(h, vma, address);
|
|
mapping = (struct address_space *)page_private(page);
|
|
mapping = (struct address_space *)page_private(page);
|
|
|
|
|
|
/*
|
|
/*
|