NFS: Introduce nfs_detach_delegations()
commitdda4b225623f316335052828c24a16e2da313f8f
authorChuck Lever <chuck.lever@oracle.com>
Fri, 24 Dec 2010 01:32:54 +0000 (24 01:32 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Jan 2011 19:47:57 +0000 (6 14:47 -0500)
treeb894d4c0c53e13f30e2bc6f7836dfdcd7a6c0173
parent24d292b894273495f9664bb495e575f8cb7e8cac
NFS: Introduce nfs_detach_delegations()

Clean up:  Refactor code that takes clp->cl_lock and calls
nfs_detach_delegations_locked() into its own function.

While we're changing the call sites, get rid of the second parameter
and the logic in nfs_detach_delegations_locked() that uses it, since
callers always set that parameter of nfs_detach_delegations_locked()
to NULL.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/delegation.c