split mmap
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 16 Jul 2007 06:38:26 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:37 +0000 (09:05 -0700)
commit0165ab443556bdfad388da6c33d74a71b77d72b2
treec2449128f60ebed846b7d63633ccee3f88949a1c
parentc44939ecb6e05aeaaf12d4e1bb046719c97e457e
split mmap

This is a straightforward split of do_mmap_pgoff() into two functions:

 - do_mmap_pgoff() checks the parameters, and calculates the vma
   flags.  Then it calls

 - mmap_region(), which does the actual mapping

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
mm/mmap.c