patch-1.3.24 linux/mm/vmalloc.c

Next file: linux/net/Changes
Previous file: linux/mm/swap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.23/linux/mm/vmalloc.c linux/mm/vmalloc.c
@@ -32,7 +32,7 @@
 	struct task_struct * p;
 
 	for_each_task(p)
-		*pgd_offset(p,address) = entry;
+		*pgd_offset(p->mm,address) = entry;
 }
 
 static inline void free_area_pte(pmd_t * pmd, unsigned long address, unsigned long size)
@@ -96,7 +96,7 @@
 	pgd_t * dir;
 	unsigned long end = address + size;
 
-	dir = pgd_offset(&init_task, address);
+	dir = pgd_offset(&init_mm, address);
 	while (address < end) {
 		free_area_pmd(dir, address, end - address);
 		address = (address + PGDIR_SIZE) & PGDIR_MASK;
@@ -152,7 +152,7 @@
 	pgd_t * dir;
 	unsigned long end = address + size;
 
-	dir = pgd_offset(&init_task, address);
+	dir = pgd_offset(&init_mm, address);
 	while (address < end) {
 		pmd_t *pmd = pmd_alloc_kernel(dir, address);
 		if (!pmd)
@@ -213,7 +213,7 @@
 	unsigned long end = address + size;
 
 	offset -= address;
-	dir = pgd_offset(&init_task, address);
+	dir = pgd_offset(&init_mm, address);
 	while (address < end) {
 		pmd_t *pmd = pmd_alloc_kernel(dir, address);
 		if (!pmd)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this