mm: mmu_notifier: fix inconsistent memory between secondary MMU and host
[deliverable/linux.git] / mm / filemap_xip.c
index 13e013b1270c6c240ba19eadb6e091e8c6afb13d..91750227a191c2dc82cb6f7ca21840fd8fbb74da 100644 (file)
@@ -305,6 +305,7 @@ out:
 static const struct vm_operations_struct xip_file_vm_ops = {
        .fault  = xip_file_fault,
        .page_mkwrite   = filemap_page_mkwrite,
+       .remap_pages = generic_file_remap_pages,
 };
 
 int xip_file_mmap(struct file * file, struct vm_area_struct * vma)
@@ -313,7 +314,7 @@ int xip_file_mmap(struct file * file, struct vm_area_struct * vma)
 
        file_accessed(file);
        vma->vm_ops = &xip_file_vm_ops;
-       vma->vm_flags |= VM_CAN_NONLINEAR | VM_MIXEDMAP;
+       vma->vm_flags |= VM_MIXEDMAP;
        return 0;
 }
 EXPORT_SYMBOL_GPL(xip_file_mmap);
This page took 0.039305 seconds and 5 git commands to generate.