]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: reorganize nfsd_create
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 20 Jul 2016 20:16:06 +0000 (16:16 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 4 Aug 2016 21:11:49 +0000 (17:11 -0400)
commit684c52689d52b3ce18c707a8b97a3a4769d2f597
treecc94f0ce9201a9d70c5330ce55d4ec30421dfb67
parent31458f1ed7284548808aa10bd081aea2a7a3c321
nfsd: reorganize nfsd_create

There's some odd logic in nfsd_create() that allows it to be called with
the parent directory either locked or unlocked.  The only already-locked
caller is NFSv2's nfsd_proc_create().  It's less confusing to split out
the unlocked case into a separate function which the NFSv2 code can call
directly.

Also fix some comments while we're here.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h