nfsd: cleanup and rename nfs4_check_open
authorJeff Layton <jlayton@primarydata.com>
Thu, 10 Jul 2014 18:07:35 +0000 (14:07 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 11 Jul 2014 15:06:38 +0000 (11:06 -0400)
commita46cb7f2878d22b5df190970416cea40982ec2fb
tree80c1e2dbe7b1968d057587486b8fe70be4fd7562
parentbaeb4ff0e50281db6925223a096a506f02993b88
nfsd: cleanup and rename nfs4_check_open

Rename it to better describe what it does, and have it just return the
stateid instead of a __be32 (which is now always nfs_ok). Also, do the
search for an existing stateid after the delegation check, to reduce
cleanup if the delegation check returns error.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c