Parcourir la source

hppfs can use existing proc_mnt, no need for do_kern_mount() in there

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro il y a 15 ans
Parent
commit
0ceeca5a08
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      fs/hppfs/hppfs.c

+ 1 - 1
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;