]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit110bdabfa180b0b242374a9783ee6b118b715cdf
treef3922b5859e6c09f064702e9fc4c40f79911e497
parente7d64ecf6d274c9207b4424e2e75680d044382db
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