]> Pileus Git - ~andy/linux/blobdiff - fs/ceph/addr.c
Merge branch 'testing/driver-warnings' of git://git.kernel.org/pub/scm/linux/kernel...
[~andy/linux] / fs / ceph / addr.c
index 22b6e4583faa993db2001885eaa1ec0ca9dd699d..6690269f5dde2c5617cff3238167788f93636985 100644 (file)
@@ -1224,6 +1224,7 @@ out:
 static struct vm_operations_struct ceph_vmops = {
        .fault          = filemap_fault,
        .page_mkwrite   = ceph_page_mkwrite,
+       .remap_pages    = generic_file_remap_pages,
 };
 
 int ceph_mmap(struct file *file, struct vm_area_struct *vma)
@@ -1234,6 +1235,5 @@ int ceph_mmap(struct file *file, struct vm_area_struct *vma)
                return -ENOEXEC;
        file_accessed(file);
        vma->vm_ops = &ceph_vmops;
-       vma->vm_flags |= VM_CAN_NONLINEAR;
        return 0;
 }