|
@@ -2480,7 +2480,8 @@ 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 = vma_hugecache_offset(h, vma, address);
|
|
|
|
|
|
+ pgoff = ((address - vma->vm_start) >> PAGE_SHIFT) +
|
|
|
|
+ vma->vm_pgoff;
|
|
mapping = vma->vm_file->f_dentry->d_inode->i_mapping;
|
|
mapping = vma->vm_file->f_dentry->d_inode->i_mapping;
|
|
|
|
|
|
/*
|
|
/*
|