|
@@ -1955,7 +1955,7 @@ static int do_file_page(struct mm_struct * mm, struct vm_area_struct * vma,
|
|
|
* Fall back to the linear mapping if the fs does not support
|
|
|
* ->populate:
|
|
|
*/
|
|
|
- if (!vma->vm_ops || !vma->vm_ops->populate ||
|
|
|
+ if (!vma->vm_ops->populate ||
|
|
|
(write_access && !(vma->vm_flags & VM_SHARED))) {
|
|
|
pte_clear(mm, address, pte);
|
|
|
return do_no_page(mm, vma, address, write_access, pte, pmd);
|