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>
Showing
- arch/x86/ia32/ia32_aout.c 5 additions, 15 deletionsarch/x86/ia32/ia32_aout.c
- fs/binfmt_aout.c 5 additions, 15 deletionsfs/binfmt_aout.c
- fs/binfmt_elf.c 4 additions, 11 deletionsfs/binfmt_elf.c
- include/linux/mm.h 2 additions, 1 deletioninclude/linux/mm.h
- mm/mmap.c 14 additions, 2 deletionsmm/mmap.c
- mm/nommu.c 1 addition, 1 deletionmm/nommu.c
Loading
Please register or sign in to comment