d_path: Make proc_get_link() use a struct path argument
proc_get_link() is always called with a dentry and a vfsmount from a struct path. Make proc_get_link() take it directly as an argument. Signed-off-by: Jan Blunck <jblunck@suse.de> Acked-by: Christoph Hellwig <hch@infradead.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Neil Brown <neilb@suse.de> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
44707fdf59
commit
3dcd25f37c
@@ -103,7 +103,7 @@ int task_statm(struct mm_struct *mm, int *shared, int *text,
|
||||
return size;
|
||||
}
|
||||
|
||||
int proc_exe_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt)
|
||||
int proc_exe_link(struct inode *inode, struct path *path)
|
||||
{
|
||||
struct vm_list_struct *vml;
|
||||
struct vm_area_struct *vma;
|
||||
@@ -126,8 +126,8 @@ int proc_exe_link(struct inode *inode, struct dentry **dentry, struct vfsmount *
|
||||
}
|
||||
|
||||
if (vma) {
|
||||
*mnt = mntget(vma->vm_file->f_path.mnt);
|
||||
*dentry = dget(vma->vm_file->f_path.dentry);
|
||||
*path = vma->vm_file->f_path;
|
||||
path_get(&vma->vm_file->f_path);
|
||||
result = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user