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
- Lines: 36
- Date:
Mon Sep 4 13:03:05 1995
- Orig file:
v1.3.23/linux/mm/vmalloc.c
- Orig date:
Sun Sep 3 12:27:04 1995
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