nsfs: Simplify __ns_get_path
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Sep 2016 00:39:20 +0000 (19:39 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Sep 2016 01:06:20 +0000 (20:06 -0500)
commit213b067ce314f9d7e72307c7036ba3cd285b80da
treef3922b5859e6c09f064702e9fc4c40f79911e497
parent78725596644be0181c46f55c52aadfb8c70bcdb7
nsfs: Simplify __ns_get_path

Move mntget from the very beginning of __ns_get_path to
the success path of __ns_get_path, and remove the mntget
calls.

This removes the possibility that there will be a mntget/mntput
pair of __ns_get_path has to retry, and generally simplifies the code.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/nsfs.c