diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2006-12-12 17:14:55 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 09:27:08 -0800 |
commit | 9de455b20705f36384a711d4a20bcf7ba1ab180b (patch) | |
tree | 6eb3643514d12d06a69a5c889d612f66b68288e6 /include/linux/highmem.h | |
parent | 77fff4ae2b7bba6d66a8287d9ab948e2b6c16145 (diff) | |
download | linux-9de455b20705f36384a711d4a20bcf7ba1ab180b.tar.gz linux-9de455b20705f36384a711d4a20bcf7ba1ab180b.tar.bz2 linux-9de455b20705f36384a711d4a20bcf7ba1ab180b.zip |
[PATCH] Pass vma argument to copy_user_highpage().
To allow a more effective copy_user_highpage() on certain architectures,
a vma argument is added to the function and cow_user_page() allowing
the implementation of these functions to check for the VM_EXEC bit.
The main part of this patch was originally written by Ralf Baechle;
Atushi Nemoto did the the debugging.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/highmem.h')
-rw-r--r-- | include/linux/highmem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index ea5780b518ef..ca9a602cffd7 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -98,7 +98,8 @@ static inline void memclear_highpage_flush(struct page *page, unsigned int offse #ifndef __HAVE_ARCH_COPY_USER_HIGHPAGE -static inline void copy_user_highpage(struct page *to, struct page *from, unsigned long vaddr) +static inline void copy_user_highpage(struct page *to, struct page *from, + unsigned long vaddr, struct vm_area_struct *vma) { char *vfrom, *vto; |