nfsd: find_cpntf_state cleanup
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Jan 2021 22:57:42 +0000 (17:57 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:29 +0000 (09:36 -0500)
commit47fdb22dacae78f37701d82a94c16a014186d34e
treebc6233c80255a243e3c98bc5411696e7a5cb5ddc
parent7950b5316e40d99dcb85ab81a2d1dbb913d7c1c8
nfsd: find_cpntf_state cleanup

I think this unusual use of struct compound_state could cause confusion.

It's not that much more complicated just to open-code this stateid
lookup.

The only change in behavior should be a different error return in the
case the copy is using a source stateid that is a revoked delegation,
but I doubt that matters.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
[ cel: squashed in fix reported by Coverity ]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c