ARM: Pass VMA to copy_user_highpage() implementations
Our copy_user_highpage() implementations may require cache maintainence. Ensure that implementations have all necessary details to perform this maintainence. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -34,7 +34,7 @@ static DEFINE_SPINLOCK(v6_lock);
|
||||
* attack the kernel's existing mapping of these pages.
|
||||
*/
|
||||
static void v6_copy_user_highpage_nonaliasing(struct page *to,
|
||||
struct page *from, unsigned long vaddr)
|
||||
struct page *from, unsigned long vaddr, struct vm_area_struct *vma)
|
||||
{
|
||||
void *kto, *kfrom;
|
||||
|
||||
@@ -73,7 +73,7 @@ static void discard_old_kernel_data(void *kto)
|
||||
* Copy the page, taking account of the cache colour.
|
||||
*/
|
||||
static void v6_copy_user_highpage_aliasing(struct page *to,
|
||||
struct page *from, unsigned long vaddr)
|
||||
struct page *from, unsigned long vaddr, struct vm_area_struct *vma)
|
||||
{
|
||||
unsigned int offset = CACHE_COLOUR(vaddr);
|
||||
unsigned long kfrom, kto;
|
||||
|
Reference in New Issue
Block a user