aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-04-20 18:35:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-04-20 20:28:17 -0400
commite4eb1ff61b323d6141614e5458a1f53c7046ff8e (patch)
tree7a0251509c169b0df1a6bf4bc47c5bca709e06da /include/linux/mm.h
parent3b422e9c2c020a1137349c614da7f9c9761a0922 (diff)
VM: add "vm_brk()" helper function
It does the same thing as "do_brk()", except it handles the VM locking too. It turns out that all external callers want that anyway, so we can make do_brk() static to just mm/mmap.c while at it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index d8738a464b94..bfee4ad6680b 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1415,7 +1415,8 @@ out:
1415 1415
1416extern int do_munmap(struct mm_struct *, unsigned long, size_t); 1416extern int do_munmap(struct mm_struct *, unsigned long, size_t);
1417 1417
1418extern unsigned long do_brk(unsigned long, unsigned long); 1418/* These take the mm semaphore themselves */
1419extern unsigned long vm_brk(unsigned long, unsigned long);
1419 1420
1420/* truncate.c */ 1421/* truncate.c */
1421extern void truncate_inode_pages(struct address_space *, loff_t); 1422extern void truncate_inode_pages(struct address_space *, loff_t);