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 af84ad04df77..6e5fcd00733e 100644
--- a/fs/proc/fd.c
+++ b/fs/proc/fd.c
@@ -91,7 +91,7 @@ static int tid_fd_revalidate(struct dentry *dentry, unsigned int flags)
91 if (flags & LOOKUP_RCU) 91 if (flags & LOOKUP_RCU)
92 return -ECHILD; 92 return -ECHILD;
93 93
94 inode = dentry->d_inode; 94 inode = d_inode(dentry);
95 task = get_proc_task(inode); 95 task = get_proc_task(inode);
96 fd = proc_fd(inode); 96 fd = proc_fd(inode);
97 97
@@ -151,14 +151,14 @@ static int proc_fd_link(struct dentry *dentry, struct path *path)
151 struct task_struct *task; 151 struct task_struct *task;
152 int ret = -ENOENT; 152 int ret = -ENOENT;
153 153
154 task = get_proc_task(dentry->d_inode); 154 task = get_proc_task(d_inode(dentry));
155 if (task) { 155 if (task) {
156 files = get_files_struct(task); 156 files = get_files_struct(task);
157 put_task_struct(task); 157 put_task_struct(task);
158 } 158 }
159 159
160 if (files) { 160 if (files) {
161 int fd = proc_fd(dentry->d_inode); 161 int fd = proc_fd(d_inode(dentry));
162 struct file *fd_file; 162 struct file *fd_file;
163 163
164 spin_lock(&files->file_lock); 164 spin_lock(&files->file_lock);