diff options
Diffstat (limited to 'mm/filemap_xip.c')
-rw-r--r-- | mm/filemap_xip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c index 13e013b1270c..91750227a191 100644 --- a/mm/filemap_xip.c +++ b/mm/filemap_xip.c | |||
@@ -305,6 +305,7 @@ out: | |||
305 | static const struct vm_operations_struct xip_file_vm_ops = { | 305 | static const struct vm_operations_struct xip_file_vm_ops = { |
306 | .fault = xip_file_fault, | 306 | .fault = xip_file_fault, |
307 | .page_mkwrite = filemap_page_mkwrite, | 307 | .page_mkwrite = filemap_page_mkwrite, |
308 | .remap_pages = generic_file_remap_pages, | ||
308 | }; | 309 | }; |
309 | 310 | ||
310 | int xip_file_mmap(struct file * file, struct vm_area_struct * vma) | 311 | 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) | |||
313 | 314 | ||
314 | file_accessed(file); | 315 | file_accessed(file); |
315 | vma->vm_ops = &xip_file_vm_ops; | 316 | vma->vm_ops = &xip_file_vm_ops; |
316 | vma->vm_flags |= VM_CAN_NONLINEAR | VM_MIXEDMAP; | 317 | vma->vm_flags |= VM_MIXEDMAP; |
317 | return 0; | 318 | return 0; |
318 | } | 319 | } |
319 | EXPORT_SYMBOL_GPL(xip_file_mmap); | 320 | EXPORT_SYMBOL_GPL(xip_file_mmap); |