FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * Find a layout for this file handle. Return NULL upon failure.
 */
Find a layout for this file handle. Return NULL upon failure.
Find a layout for this file handle . Return NULL upon failure .
static struct nfscllayout *
nfscl_findlayout(struct nfsclclient *clp, u_int8_t *fhp, int fhlen)
{
	struct nfscllayout *lyp;
	LIST_FOREACH(lyp, NFSCLLAYOUTHASH(clp, fhp, fhlen), nfsly_hash)
		if (lyp->nfsly_fhlen == fhlen &&
		    !NFSBCMP(lyp->nfsly_fh, fhp, fhlen))
			break;
	return (lyp);
}
static struct nfscllayout * nfscl_findlayout ( struct nfsclclient * clp , u_int8_t * fhp , int fhlen ) { struct nfscllayout * lyp ; LIST_FOREACH ( lyp , NFSCLLAYOUTHASH ( clp , fhp , fhlen ) , nfsly_hash ) if ( lyp -> nfsly_fhlen == fhlen && ! NFSBCMP ( lyp -> nfsly_fh , fhp , fhlen ) ) break ; return ( lyp ) ; }
Find a layout for this file handle.
Find a layout for this file handle .