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

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

diff -u --recursive --new-file v2.1.44/linux/fs/proc/link.c linux/fs/proc/link.c
@@ -14,7 +14,6 @@
 #include <linux/mm.h>
 #include <linux/proc_fs.h>
 #include <linux/stat.h>
-#include <linux/dalloc.h>
 
 static int proc_readlink(struct inode *, char *, int);
 static struct dentry * proc_follow_link(struct inode *, struct dentry *);
@@ -105,7 +104,7 @@
 			vma = p->mm->mmap;
 			while (vma) {
 				if (vma->vm_flags & VM_EXECUTABLE)
-					return dget(vma->vm_inode->i_dentry);
+					return dget(vma->vm_dentry);
 
 				vma = vma->vm_next;
 			}
@@ -121,9 +120,9 @@
 					break;
 				if (!p->files->fd[ino])
 					break;
-				if (!p->files->fd[ino]->f_inode)
+				if (!p->files->fd[ino]->f_dentry)
 					break;
-				result = dget(p->files->fd[ino]->f_inode->i_dentry);
+				result = dget(p->files->fd[ino]->f_dentry);
 				break;
 			}
 	}

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