From: Al Viro Date: Fri, 5 Feb 2010 14:34:36 +0000 (-0500) Subject: hppfs can use existing proc_mnt, no need for do_kern_mount() in there X-Git-Tag: v2.6.34-rc1~205^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ceeca5a08abb1d880f0cc0ea812ad14932070e0;p=thirdparty%2Flinux.git hppfs can use existing proc_mnt, no need for do_kern_mount() in there Signed-off-by: Al Viro --- diff --git a/fs/hppfs/hppfs.c b/fs/hppfs/hppfs.c index 7239efc690d83..2e4dfa8593da4 100644 --- a/fs/hppfs/hppfs.c +++ b/fs/hppfs/hppfs.c @@ -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;