NFS: Don't open code clearing of delegation state
authorTrond Myklebust <trondmy@gmail.com>
Wed, 5 Sep 2018 18:07:15 +0000 (14:07 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 14 Sep 2018 20:24:27 +0000 (16:24 -0400)
commit9f0c5124f4a82503ee5d55c60b0b9c6afc3af68b
treef6a1bd75871599cc37f9f116fd954b15d26b9c72
parent994b15b983a72e1148a173b61e5b279219bb45ae
NFS: Don't open code clearing of delegation state

Add a helper for the case when the nfs4 open state has been set to use
a delegation stateid, and we want to revert to using the open stateid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c