diff options
author | Andrew Morton <akpm@osdl.org> | 2004-05-24 18:43:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-24 18:43:17 -0700 |
commit | 2c60fda2125ccd88ac80184496dbebf23f678406 (patch) | |
tree | 50750b9734d33923025646d5f87025fda71eada3 /mm | |
parent | 5ca688341a281ea6a9f78a60ca3831c2c0642eac (diff) | |
download | history-2c60fda2125ccd88ac80184496dbebf23f678406.tar.gz |
[PATCH] remap_file_pages: implement MAP_POPULATE for all protections
Signed-off-by: Hugh Dickins <hugh@veritas.com>
It seems eccentric to implement MAP_POPULATE only on PROT_NONE mappings:
do_mmap_pgoff is passing down prot, then sys_remap_file_pages verifies it's
not set. I guess that's an oversight from when we realized that the prot arg
to sys_remap_file_pages was misdesigned.
There's another oddity whose heritage is harder for me to understand, so
please let me leave it to you: sys_remap_file_pages is declared as asmlinkage
in mm/fremap.c, but is the one syscall declared without asmlinkage in
include/linux/syscalls.h.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c index 6b8f7a13c0d3f1..a930fd4f56a507 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -951,7 +951,7 @@ out: } if (flags & MAP_POPULATE) { up_write(&mm->mmap_sem); - sys_remap_file_pages(addr, len, prot, + sys_remap_file_pages(addr, len, 0, pgoff, flags & MAP_NONBLOCK); down_write(&mm->mmap_sem); } |