Skip to content

Commit

Permalink
hppfs can use existing proc_mnt, no need for do_kern_mount() in there
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 3, 2010
1 parent 8089352 commit 0ceeca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/hppfs/hppfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0ceeca5

Please sign in to comment.