FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Return all delegations on this client.
 * (Must be called with client sleep lock.)
 */
Return all delegations on this client.
(Must be called with client sleep lock.)
Return all delegations on this client . ( Must be called with client sleep lock . )
static void
nfscl_delegreturnall(struct nfsclclient *clp, NFSPROC_T *p)
{
	struct nfscldeleg *dp, *ndp;
	struct ucred *cred;
	cred = newnfs_getcred();
	TAILQ_FOREACH_SAFE(dp, &clp->nfsc_deleg, nfsdl_list, ndp) {
		nfscl_cleandeleg(dp);
		(void) nfscl_trydelegreturn(dp, cred, clp->nfsc_nmp, p);
		nfscl_freedeleg(&clp->nfsc_deleg, dp);
	}
	NFSFREECRED(cred);
}
static void nfscl_delegreturnall ( struct nfsclclient * clp , NFSPROC_T * p ) { struct nfscldeleg * dp , * ndp ; struct ucred * cred ; cred = newnfs_getcred ( ) ; TAILQ_FOREACH_SAFE ( dp , & clp -> nfsc_deleg , nfsdl_list , ndp ) { nfscl_cleandeleg ( dp ) ; ( void ) nfscl_trydelegreturn ( dp , cred , clp -> nfsc_nmp , p ) ; nfscl_freedeleg ( & clp -> nfsc_deleg , dp ) ; } NFSFREECRED ( cred ) ; }
Return all delegations on this client.
Return all delegations on this client .