summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Mosberger <davidm@napali.hpl.hp.com>2002-05-30 21:13:27 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-05-30 21:13:27 -0700
commitc583dc5934f564c7db979a7854d70af6e85e7605 (patch)
treeabb09e2d77dd025ee66e0705bdbc77a17e7cf55d /include/linux
parent9d64273c4f865c0a1cd76a3450a3d2bba8262e66 (diff)
[PATCH] pass "page" pointer to clear_user_page()/copy_user_page()
Hi Linus, Are you willing to change the interfaces of clear_user_page() and copy_user_page() so that they can receive the relevant page pointer as a separate argument? I need this on ia64 to implement the lazy-cache flushing scheme. I believe PPC would also benefit from this. --david
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/highmem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h
index 1f99e950f5d5..da66723d62c5 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
@@ -77,7 +77,7 @@ static inline void *kmap(struct page *page) { return page_address(page); }
static inline void clear_user_highpage(struct page *page, unsigned long vaddr)
{
void *addr = kmap_atomic(page, KM_USER0);
- clear_user_page(addr, vaddr);
+ clear_user_page(addr, vaddr, page);
kunmap_atomic(addr, KM_USER0);
}
@@ -111,7 +111,7 @@ static inline void copy_user_highpage(struct page *to, struct page *from, unsign
vfrom = kmap_atomic(from, KM_USER0);
vto = kmap_atomic(to, KM_USER1);
- copy_user_page(vto, vfrom, vaddr);
+ copy_user_page(vto, vfrom, vaddr, to);
kunmap_atomic(vfrom, KM_USER0);
kunmap_atomic(vto, KM_USER1);
}