patch-2.3.99-pre6 linux/include/asm-sparc64/pgalloc.h
Next file: linux/include/asm-sparc64/pgtable.h
Previous file: linux/include/asm-sparc64/page.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Apr 14 09:37:10 2000
- Orig file:
v2.3.99-pre5/linux/include/asm-sparc64/pgalloc.h
- Orig date:
Tue Apr 11 15:09:24 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-sparc64/pgalloc.h linux/include/asm-sparc64/pgalloc.h
@@ -153,11 +153,11 @@
ret = (struct page *)(__page_address(ret) + off);
pgd_cache_size--;
} else {
- ret = (struct page *) __get_free_page(GFP_KERNEL);
- if(ret) {
- struct page *page = mem_map + MAP_NR(ret);
-
- memset(ret, 0, PAGE_SIZE);
+ struct page *page = alloc_page(GFP_KERNEL);
+
+ if (page) {
+ ret = (struct page *)page_address(page);
+ clear_page(ret);
(unsigned long)page->pprev_hash = 2;
(unsigned long *)page->next_hash = pgd_quicklist;
pgd_quicklist = (unsigned long *)page;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)