diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-20 19:20:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-20 20:29:13 -0400 |
commit | a46ef99d80817a167477ed1c8b4d90ee0c2e726f (patch) | |
tree | 3d8c980c627e8b9c009dbf63628a9be8b8d1069f /include/linux/mm.h | |
parent | e4eb1ff61b323d6141614e5458a1f53c7046ff8e (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index bfee4ad6680b..cb61950a3aa1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1417,6 +1417,7 @@ extern int do_munmap(struct mm_struct *, unsigned long, size_t); | |||
1417 | 1417 | ||
1418 | /* These take the mm semaphore themselves */ | 1418 | /* These take the mm semaphore themselves */ |
1419 | extern unsigned long vm_brk(unsigned long, unsigned long); | 1419 | extern unsigned long vm_brk(unsigned long, unsigned long); |
1420 | extern int vm_munmap(struct mm_struct *, unsigned long, size_t); | ||
1420 | 1421 | ||
1421 | /* truncate.c */ | 1422 | /* truncate.c */ |
1422 | extern void truncate_inode_pages(struct address_space *, loff_t); | 1423 | extern void truncate_inode_pages(struct address_space *, loff_t); |