FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Clean out the state related to a delegation.
 */
Clean out the state related to a delegation.
Clean out the state related to a delegation .
static void
nfscl_cleandeleg(struct nfscldeleg *dp)
{
	struct nfsclowner *owp, *nowp;
	struct nfsclopen *op;
	LIST_FOREACH_SAFE(owp, &dp->nfsdl_owner, nfsow_list, nowp) {
		op = LIST_FIRST(&owp->nfsow_open);
		if (op != NULL) {
			if (LIST_NEXT(op, nfso_list) != NULL)
				panic("nfscleandel");
			nfscl_freeopen(op, 1);
		}
		nfscl_freeopenowner(owp, 1);
	}
	nfscl_freealllocks(&dp->nfsdl_lock, 1);
}
static void nfscl_cleandeleg ( struct nfscldeleg * dp ) { struct nfsclowner * owp , * nowp ; struct nfsclopen * op ; LIST_FOREACH_SAFE ( owp , & dp -> nfsdl_owner , nfsow_list , nowp ) { op = LIST_FIRST ( & owp -> nfsow_open ) ; if ( op != NULL ) { if ( LIST_NEXT ( op , nfso_list ) != NULL ) panic ( " " ) ; nfscl_freeopen ( op , 1 ) ; } nfscl_freeopenowner ( owp , 1 ) ; } nfscl_freealllocks ( & dp -> nfsdl_lock , 1 ) ; }
Clean out the state related to a delegation.
Clean out the state related to a delegation .