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>
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 93d99b3..03b4f6f 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -79,7 +79,6 @@
}
sb->s_flags |= MS_ACTIVE;
- ns->proc_mnt = mnt;
}
simple_set_mnt(mnt, sb);
@@ -115,6 +114,7 @@
return;
}
+ init_pid_ns.proc_mnt = proc_mnt;
proc_symlink("mounts", NULL, "self/mounts");
proc_net_init();
@@ -213,6 +213,7 @@
if (IS_ERR(mnt))
return PTR_ERR(mnt);
+ ns->proc_mnt = mnt;
return 0;
}