projects
/
wrapfs-2.6.35.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91bb94
)
Wrapfs: remove unnecessary call to vm_unmap in ->mmap
author
Erez Zadok
<ezk@cs.sunysb.edu>
Wed, 5 Jun 2013 05:43:04 +0000
(
01:43
-0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Wed, 5 Jun 2013 05:43:04 +0000
(
01:43
-0400)
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 96aaa329822c75acfd8cd628f67ba52fc09704b6..33b5bca3f9509875915c261dd1f968755eac7608 100644
(file)
--- a/
fs/wrapfs/file.c
+++ b/
fs/wrapfs/file.c
@@
-127,12
+127,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;
- }
}
/*