hppfs can use existing proc_mnt, no need for do_kern_mount() in there
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Feb 2010 14:34:36 +0000 (09:34 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 3 Mar 2010 19:08:00 +0000 (14:08 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hppfs/hppfs.c

index 7239efc690d833cf9e4a507916a5819270c1f267..2e4dfa8593da4c047a1a9028f6d8f8ce2b8b78bd 100644 (file)
@@ -718,7 +718,7 @@ static int hppfs_fill_super(struct super_block *sb, void *d, int silent)
        struct vfsmount *proc_mnt;
        int err = -ENOENT;
 
-       proc_mnt = do_kern_mount("proc", 0, "proc", NULL);
+       proc_mnt = mntget(current->nsproxy->pid_ns->proc_mnt);
        if (IS_ERR(proc_mnt))
                goto out;