patch-2.3.27 linux/mm/memory.c
Next file: linux/mm/mmap.c
Previous file: linux/mm/highmem.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Nov 11 10:33:42 1999
- Orig file:
v2.3.26/linux/mm/memory.c
- Orig date:
Sun Nov 7 16:37:34 1999
diff -u --recursive --new-file v2.3.26/linux/mm/memory.c linux/mm/memory.c
@@ -808,7 +808,7 @@
* Ok, we need to copy. Oh, well..
*/
spin_unlock(&tsk->mm->page_table_lock);
- new_page = get_free_highpage(GFP_HIGHUSER);
+ new_page = alloc_page(GFP_HIGHUSER);
if (!new_page)
return -1;
spin_lock(&tsk->mm->page_table_lock);
@@ -1025,7 +1025,7 @@
struct page *page = NULL;
pte_t entry = pte_wrprotect(mk_pte(ZERO_PAGE(addr), vma->vm_page_prot));
if (write_access) {
- page = get_free_highpage(GFP_HIGHUSER);
+ page = alloc_page(GFP_HIGHUSER);
if (!page)
return -1;
if (PageHighMem(page))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)