patch-2.1.17 linux/mm/vmalloc.c
Next file: linux/net/802/transit/timertr.h
Previous file: linux/mm/mmap.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Sat Dec 21 14:24:05 1996
-  Orig file: 
v2.1.16/linux/mm/vmalloc.c
-  Orig date: 
Tue Oct 29 19:58:48 1996
diff -u --recursive --new-file v2.1.16/linux/mm/vmalloc.c linux/mm/vmalloc.c
@@ -73,7 +73,7 @@
 	pgd_t * dir;
 	unsigned long end = address + size;
 
-	dir = pgd_offset(&init_mm, address);
+	dir = pgd_offset_k(address);
 	flush_cache_all();
 	while (address < end) {
 		free_area_pmd(dir, address, end - address);
@@ -130,7 +130,7 @@
 	pgd_t * dir;
 	unsigned long end = address + size;
 
-	dir = pgd_offset(&init_mm, address);
+	dir = pgd_offset_k(address);
 	flush_cache_all();
 	while (address < end) {
 		pmd_t *pmd = pmd_alloc_kernel(dir, address);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov