aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/fd.c')
-rw-r--r--fs/proc/fd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/fd.c b/fs/proc/fd.c
index 8e5ad83b629a..a205904a27ae 100644
--- a/fs/proc/fd.c
+++ b/fs/proc/fd.c
@@ -84,7 +84,7 @@ static int tid_fd_revalidate(struct dentry *dentry, unsigned int flags)
84 if (flags & LOOKUP_RCU) 84 if (flags & LOOKUP_RCU)
85 return -ECHILD; 85 return -ECHILD;
86 86
87 inode = dentry->d_inode; 87 inode = d_inode(dentry);
88 task = get_proc_task(inode); 88 task = get_proc_task(inode);
89 fd = proc_fd(inode); 89 fd = proc_fd(inode);
90 90
@@ -144,14 +144,14 @@ static int proc_fd_link(struct dentry *dentry, struct path *path)
144 struct task_struct *task; 144 struct task_struct *task;
145 int ret = -ENOENT; 145 int ret = -ENOENT;
146 146
147 task = get_proc_task(dentry->d_inode); 147 task = get_proc_task(d_inode(dentry));
148 if (task) { 148 if (task) {
149 files = get_files_struct(task); 149 files = get_files_struct(task);
150 put_task_struct(task); 150 put_task_struct(task);
151 } 151 }
152 152
153 if (files) { 153 if (files) {
154 int fd = proc_fd(dentry->d_inode); 154 int fd = proc_fd(d_inode(dentry));
155 struct file *fd_file; 155 struct file *fd_file;
156 156
157 spin_lock(&files->file_lock); 157 spin_lock(&files->file_lock);