patch-2.3.99-pre8 linux/mm/memory.c
Next file: linux/mm/page_alloc.c
Previous file: linux/mm/highmem.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri May 12 11:21:20 2000
- Orig file:
v2.3.99-pre7/linux/mm/memory.c
- Orig date:
Thu May 11 15:30:08 2000
diff -u --recursive --new-file v2.3.99-pre7/linux/mm/memory.c linux/mm/memory.c
@@ -48,9 +48,9 @@
#include <linux/pagemap.h>
-unsigned long max_mapnr = 0;
-unsigned long num_physpages = 0;
-void * high_memory = NULL;
+unsigned long max_mapnr;
+unsigned long num_physpages;
+void * high_memory;
struct page *highmem_start_page;
/*
@@ -861,7 +861,7 @@
* Ok, we need to copy. Oh, well..
*/
spin_unlock(&mm->page_table_lock);
- new_page = alloc_page(GFP_HIGHUSER);
+ new_page = page_cache_alloc();
if (!new_page)
return -1;
spin_lock(&mm->page_table_lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)