commit | 021ada7dff22d0d9540ff596cb0f8bb866755ee1 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Fri Mar 29 19:27:05 2013 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 09 14:13:05 2013 -0400 |
tree | 3f8a8a8c4ab35ff7cf3f968c079b855a1a18377c | |
parent | 0ecc833bac594099505a090cbca6ccd5b83d5975 [diff] [blame] |
procfs: switch /proc/self away from proc_dir_entry Just have it pinned in dcache all along and let procfs ->kill_sb() drop it before kill_anon_super(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/proc/root.c b/fs/proc/root.c index c6e9fac..20834b3 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c
@@ -137,6 +137,8 @@ struct pid_namespace *ns; ns = (struct pid_namespace *)sb->s_fs_info; + if (ns->proc_self) + dput(ns->proc_self); kill_anon_super(sb); put_pid_ns(ns); }