patch-2.1.45 linux/fs/proc/array.c

Next file: linux/fs/proc/fd.c
Previous file: linux/fs/proc/arbitrary.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -591,7 +591,7 @@
 
 		for (vma = mm->mmap; vma; vma = vma->vm_next) {
 			unsigned long len = (vma->vm_end - vma->vm_start) >> 10;
-			if (!vma->vm_inode) {
+			if (!vma->vm_dentry) {
 				data += len;
 				if (vma->vm_flags & VM_GROWSDOWN)
 					stack += len;
@@ -949,12 +949,11 @@
 		*cp++ = flags & VM_MAYSHARE ? 's' : 'p';
 		*cp++ = 0;
 
-		if (map->vm_inode != NULL) {
-			dev = map->vm_inode->i_dev;
-			ino = map->vm_inode->i_ino;
-		} else {
-			dev = 0;
-			ino = 0;
+		dev = 0;
+		ino = 0;
+		if (map->vm_dentry != NULL) {
+			dev = map->vm_dentry->d_inode->i_dev;
+			ino = map->vm_dentry->d_inode->i_ino;
 		}
 
 		len = sprintf(line,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov