Merge to Fedora kernel-2.6.7-1.492
[linux-2.6.git] / fs / super.c
index ca60ada..38c23bf 100644 (file)
@@ -793,6 +793,7 @@ 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);
        put_filesystem(type);
        return mnt;
@@ -809,6 +810,8 @@ out:
        return (struct vfsmount *)sb;
 }
 
+EXPORT_SYMBOL_GPL(do_kern_mount);
+
 struct vfsmount *kern_mount(struct file_system_type *type)
 {
        return do_kern_mount(type->name, 0, type->name, NULL);