summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-04-20 16:20:01 -0700
committerVarun Wadekar <vwadekar@nvidia.com>2012-04-25 12:22:57 +0530
commite36f4e07f4e36a78febb515a39068a31d600108b (patch)
tree4e4700bbcadece2801e7876f00bffdd80243af4c /include/linux/mm.h
parentbb180be307ffaeffcded4e90b1b83f669b191487 (diff)
VM: add "vm_munmap()" helper function
Like the vm_brk() function, this is the same as "do_munmap()", except it does the VM locking for the caller. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 5a55a941cc1c..cf9e6864cd99 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1418,6 +1418,7 @@ extern int do_munmap(struct mm_struct *, unsigned long, size_t);
/* These take the mm semaphore themselves */
extern unsigned long vm_brk(unsigned long, unsigned long);
+extern int vm_munmap(struct mm_struct *, unsigned long, size_t);
/* truncate.c */
extern void truncate_inode_pages(struct address_space *, loff_t);