diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2007-07-16 02:38:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:37 -0400 |
commit | 0165ab443556bdfad388da6c33d74a71b77d72b2 (patch) | |
tree | c2449128f60ebed846b7d63633ccee3f88949a1c /include/linux/mm.h | |
parent | c44939ecb6e05aeaaf12d4e1bb046719c97e457e (diff) |
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>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index bbd427e8741a..d4ab4e590e23 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1071,6 +1071,10 @@ extern unsigned long get_unmapped_area(struct file *, unsigned long, unsigned lo | |||
1071 | extern unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, | 1071 | extern unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, |
1072 | unsigned long len, unsigned long prot, | 1072 | unsigned long len, unsigned long prot, |
1073 | unsigned long flag, unsigned long pgoff); | 1073 | unsigned long flag, unsigned long pgoff); |
1074 | extern unsigned long mmap_region(struct file *file, unsigned long addr, | ||
1075 | unsigned long len, unsigned long flags, | ||
1076 | unsigned int vm_flags, unsigned long pgoff, | ||
1077 | int accountable); | ||
1074 | 1078 | ||
1075 | static inline unsigned long do_mmap(struct file *file, unsigned long addr, | 1079 | static inline unsigned long do_mmap(struct file *file, unsigned long addr, |
1076 | unsigned long len, unsigned long prot, | 1080 | unsigned long len, unsigned long prot, |