patch-2.3.99-pre2 linux/mm/memory.c
Next file: linux/mm/page_alloc.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Mar 15 09:59:06 2000
- Orig file:
v2.3.99-pre1/linux/mm/memory.c
- Orig date:
Fri Mar 10 16:40:50 2000
diff -u --recursive --new-file v2.3.99-pre1/linux/mm/memory.c linux/mm/memory.c
@@ -61,10 +61,10 @@
static inline void copy_cow_page(struct page * from, struct page * to, unsigned long address)
{
if (from == ZERO_PAGE(address)) {
- clear_highpage(to);
+ clear_user_highpage(to, address);
return;
}
- copy_highpage(to, from);
+ copy_user_highpage(to, from, address);
}
mem_map_t * mem_map = NULL;
@@ -1073,7 +1073,7 @@
return -1;
if (PageHighMem(page))
high = 1;
- clear_highpage(page);
+ clear_user_highpage(page, addr);
entry = pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
vma->vm_mm->rss++;
tsk->min_flt++;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)