aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/thread_self.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/thread_self.c')
-rw-r--r--fs/proc/thread_self.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/thread_self.c b/fs/proc/thread_self.c
index 9d2efaca499f..b905010ca9eb 100644
--- a/fs/proc/thread_self.c
+++ b/fs/proc/thread_self.c
@@ -12,7 +12,7 @@ static const char *proc_thread_self_get_link(struct dentry *dentry,
12 struct inode *inode, 12 struct inode *inode,
13 struct delayed_call *done) 13 struct delayed_call *done)
14{ 14{
15 struct pid_namespace *ns = inode->i_sb->s_fs_info; 15 struct pid_namespace *ns = proc_pid_ns(inode);
16 pid_t tgid = task_tgid_nr_ns(current, ns); 16 pid_t tgid = task_tgid_nr_ns(current, ns);
17 pid_t pid = task_pid_nr_ns(current, ns); 17 pid_t pid = task_pid_nr_ns(current, ns);
18 char *name; 18 char *name;
@@ -36,7 +36,7 @@ static unsigned thread_self_inum __ro_after_init;
36int proc_setup_thread_self(struct super_block *s) 36int proc_setup_thread_self(struct super_block *s)
37{ 37{
38 struct inode *root_inode = d_inode(s->s_root); 38 struct inode *root_inode = d_inode(s->s_root);
39 struct pid_namespace *ns = s->s_fs_info; 39 struct pid_namespace *ns = proc_pid_ns(root_inode);
40 struct dentry *thread_self; 40 struct dentry *thread_self;
41 41
42 inode_lock(root_inode); 42 inode_lock(root_inode);