Skip to content

Commit 579441a

Browse files
author
Al Viro
committed
setting ->proc_mnt doesn't belong in proc_get_sb()
take that to kern_mount_data()-using callers Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent d753ed9 commit 579441a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎fs/proc/root.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ static int proc_get_sb(struct file_system_type *fs_type,
7979
}
8080

8181
sb->s_flags |= MS_ACTIVE;
82-
ns->proc_mnt = mnt;
8382
}
8483

8584
simple_set_mnt(mnt, sb);
@@ -115,6 +114,7 @@ void __init proc_root_init(void)
115114
return;
116115
}
117116

117+
init_pid_ns.proc_mnt = proc_mnt;
118118
proc_symlink("mounts", NULL, "self/mounts");
119119

120120
proc_net_init();
@@ -213,6 +213,7 @@ int pid_ns_prepare_proc(struct pid_namespace *ns)
213213
if (IS_ERR(mnt))
214214
return PTR_ERR(mnt);
215215

216+
ns->proc_mnt = mnt;
216217
return 0;
217218
}
218219

0 commit comments

Comments
 (0)