projects
/
wrapfs-3.5.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5851880
)
Wrapfs: use vm_munmap in ->mmap
author
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 3 Jun 2013 04:22:57 +0000
(
00:22
-0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Mon, 3 Jun 2013 04:22:57 +0000
(
00:22
-0400)
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 7a7fe1e98d48d150eefcb0e1035715eb8f9ec314..f9c99ad03481ac408d29883a447c0e8eff4636d2 100644
(file)
--- a/
fs/wrapfs/file.c
+++ b/
fs/wrapfs/file.c
@@
-141,10
+141,9
@@
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);
+ err = vm_munmap(vma->vm_start, vma->vm_end - vma->vm_start);
if (err) {
- printk(KERN_ERR "wrapfs:
do
_munmap failed %d\n", err);
+ printk(KERN_ERR "wrapfs:
vm
_munmap failed %d\n", err);
goto out;
}
}