Wrapfs: remove unnecessary call to vm_unmap in ->mmap
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 5 Jun 2013 05:36:58 +0000 (01:36 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 3 Apr 2016 19:23:23 +0000 (15:23 -0400)
Code is unnecessary and causes deadlocks in newer kernels.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/file.c

index 5d790a3aba81b8d3f7786da33cafbf6cb1ef03bb..1611b222df2e8d62b1ee8bcde93ed2e0fc7c8b3c 100644 (file)
@@ -141,11 +141,6 @@ static int wrapfs_mmap(struct file *file, struct vm_area_struct *vma)
                        goto out;
                }
                saved_vm_ops = vma->vm_ops; /* save: came from lower ->mmap */
-               err = vm_munmap(vma->vm_start, vma->vm_end - vma->vm_start);
-               if (err) {
-                       printk(KERN_ERR "wrapfs: vm_munmap failed %d\n", err);
-                       goto out;
-               }
        }
 
        /*