patch-1.3.24 linux/fs/proc/array.c
Next file: linux/fs/proc/mem.c
Previous file: linux/fs/exec.c
Back to the patch index
Back to the overall index
-  Lines: 18
 -  Date:
Mon Sep  4 13:30:18 1995
 -  Orig file: 
v1.3.23/linux/fs/proc/array.c
 -  Orig date: 
Sun Sep  3 12:27:01 1995
 
diff -u --recursive --new-file v1.3.23/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -293,7 +293,7 @@
 
 	if (!p || ptr >= TASK_SIZE)
 		return 0;
-	page_dir = pgd_offset(p,ptr);
+	page_dir = pgd_offset(p->mm,ptr);
 	if (pgd_none(*page_dir))
 		return 0;
 	if (pgd_bad(*page_dir)) {
@@ -556,7 +556,7 @@
 		struct vm_area_struct * vma = (*p)->mm->mmap;
 
 		while (vma) {
-			pgd_t *pgd = pgd_offset(*p, vma->vm_start);
+			pgd_t *pgd = pgd_offset((*p)->mm, vma->vm_start);
 			int pages = 0, shared = 0, dirty = 0, total = 0;
 
 			statm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total);
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