projects
/
wrapfs-3.4.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e56a233
)
Wrapfs: remove unnecessary call to vm_unmap in ->mmap
author
Erez Zadok
<ezk@cs.sunysb.edu>
Wed, 5 Jun 2013 05:43:38 +0000
(
01:43
-0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 27 Dec 2016 03:11:36 +0000
(22:11 -0500)
Code is unnecessary and causes deadlocks in newer kernels.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/file.c
patch
|
blob
|
history
diff --git
a/fs/wrapfs/file.c
b/fs/wrapfs/file.c
index 51378a8478f3037dfc533a8d2c63b680e4e2b273..8420e94275b977bd3b00c15a1ddd8b6e400a164c 100644
(file)
--- a/
fs/wrapfs/file.c
+++ b/
fs/wrapfs/file.c
@@
-141,12
+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 = do_munmap(current->mm, vma->vm_start,
- vma->vm_end - vma->vm_start);
- if (err) {
- printk(KERN_ERR "wrapfs: do_munmap failed %d\n", err);
- goto out;
- }
}
/*