From: Al Viro Date: Mon, 26 Jul 2010 09:09:36 +0000 (+0400) Subject: setting ->proc_mnt doesn't belong in proc_get_sb() X-Git-Tag: firefly_0821_release~7613^2~3567^2~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=579441a39bbbbc408acd5b228d63e76cff708fe6;p=firefly-linux-kernel-4.4.55.git setting ->proc_mnt doesn't belong in proc_get_sb() take that to kern_mount_data()-using callers Signed-off-by: Al Viro --- diff --git a/fs/proc/root.c b/fs/proc/root.c index 93d99b316325..03b4f6fe4984 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c @@ -79,7 +79,6 @@ static int proc_get_sb(struct file_system_type *fs_type, } sb->s_flags |= MS_ACTIVE; - ns->proc_mnt = mnt; } simple_set_mnt(mnt, sb); @@ -115,6 +114,7 @@ void __init proc_root_init(void) return; } + init_pid_ns.proc_mnt = proc_mnt; proc_symlink("mounts", NULL, "self/mounts"); proc_net_init(); @@ -213,6 +213,7 @@ int pid_ns_prepare_proc(struct pid_namespace *ns) if (IS_ERR(mnt)) return PTR_ERR(mnt); + ns->proc_mnt = mnt; return 0; }