FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Do a layout return for each of the recalls.
 */
Do a layout return for each of the recalls.
Do a layout return for each of the recalls .
static void
nfscl_layoutreturn(struct nfsmount *nmp, struct nfscllayout *lyp,
    struct ucred *cred, NFSPROC_T *p)
{
	struct nfsclrecalllayout *rp;
	nfsv4stateid_t stateid;
	NFSBCOPY(lyp->nfsly_stateid.other, stateid.other, NFSX_STATEIDOTHER);
	LIST_FOREACH(rp, &lyp->nfsly_recall, nfsrecly_list) {
		stateid.seqid = rp->nfsrecly_stateseqid;
		(void)nfsrpc_layoutreturn(nmp, lyp->nfsly_fh,
		    lyp->nfsly_fhlen, 0, NFSLAYOUT_NFSV4_1_FILES,
		    rp->nfsrecly_iomode, rp->nfsrecly_recalltype,
		    rp->nfsrecly_off, rp->nfsrecly_len,
		    &stateid, 0, NULL, cred, p, NULL);
	}
}
static void nfscl_layoutreturn ( struct nfsmount * nmp , struct nfscllayout * lyp , struct ucred * cred , NFSPROC_T * p ) { struct nfsclrecalllayout * rp ; nfsv4stateid_t stateid ; NFSBCOPY ( lyp -> nfsly_stateid . other , stateid . other , NFSX_STATEIDOTHER ) ; LIST_FOREACH ( rp , & lyp -> nfsly_recall , nfsrecly_list ) { stateid . seqid = rp -> nfsrecly_stateseqid ; ( void ) nfsrpc_layoutreturn ( nmp , lyp -> nfsly_fh , lyp -> nfsly_fhlen , 0 , NFSLAYOUT_NFSV4_1_FILES , rp -> nfsrecly_iomode , rp -> nfsrecly_recalltype , rp -> nfsrecly_off , rp -> nfsrecly_len , & stateid , 0 , NULL , cred , p , NULL ) ; } }
Do a layout return for each of the recalls.
Do a layout return for each of the recalls .