From 42bcb8f78d23e794cf22687bc35bdab82e39a2b7 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 7 Jul 2005 17:57:28 -0700 Subject: [PATCH] --- yaml --- r: 4296 b: refs/heads/master c: 484e389c63472a7f8cfb491cf11b047364e59365 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/namespace.c | 1 + trunk/fs/super.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index bd251886aebd..59d76069dfd5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ac0811538b40bb92d339d22364026ed91dfdd147 +refs/heads/master: 484e389c63472a7f8cfb491cf11b047364e59365 diff --git a/trunk/fs/namespace.c b/trunk/fs/namespace.c index 7fd56eeb21bf..b168dc37eaab 100644 --- a/trunk/fs/namespace.c +++ b/trunk/fs/namespace.c @@ -808,6 +808,7 @@ int do_add_mount(struct vfsmount *newmnt, struct nameidata *nd, goto unlock; newmnt->mnt_flags = mnt_flags; + newmnt->mnt_namespace = current->namespace; err = graft_tree(newmnt, nd); if (err == 0 && fslist) { diff --git a/trunk/fs/super.c b/trunk/fs/super.c index 25bc1ec6bc5d..6e57ee252e14 100644 --- a/trunk/fs/super.c +++ b/trunk/fs/super.c @@ -840,7 +840,6 @@ do_kern_mount(const char *fstype, int flags, const char *name, void *data) mnt->mnt_root = dget(sb->s_root); mnt->mnt_mountpoint = sb->s_root; mnt->mnt_parent = mnt; - mnt->mnt_namespace = current->namespace; up_write(&sb->s_umount); free_secdata(secdata); put_filesystem(type);