nfsd: simplify put of fi_deleg_file
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Feb 2018 20:29:15 +0000 (15:29 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 20 Mar 2018 21:51:10 +0000 (17:51 -0400)
commitb8232d3315ec746e3b5d4c9252541567e57a509b
tree0c77d08d40df7720311225bf90df3d769b859263
parent6f29d07ca4b999c36d42f9cf8d1dddf9ddca3250
nfsd: simplify put of fi_deleg_file

fi_delegees is basically just a reference count on users of
fi_deleg_file, which is cleared when fi_delegees goes to zero.  The
fi_deleg_file check here is redundant.  Also add an assertion to make
sure we don't have unbalanced puts.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
fs/nfsd/nfs4state.c