FreeBSD/sys/fs/nfsclient/nfs_clsubs.c
/*
 * Invalidate cached directory information, except for the actual directory
 * blocks (which are invalidated separately).
 * Done mainly to avoid the use of stale offset cookies.
 */
Invalidate cached directory information, except for the actual directory
blocks (which are invalidated separately).
Done mainly to avoid the use of stale offset cookies.
Invalidate cached directory information except for the actual directory blocks ( which are invalidated separately ) . Done mainly to avoid the use of stale offset cookies .
void
ncl_invaldir(struct vnode *vp)
{
	struct nfsnode *np = VTONFS(vp);
	KASSERT(vp->v_type == VDIR, ("nfs: invaldir not dir"));
	ncl_dircookie_lock(np);
	np->n_direofoffset = 0;
	np->n_cookieverf.nfsuquad[0] = 0;
	np->n_cookieverf.nfsuquad[1] = 0;
	if (LIST_FIRST(&np->n_cookies))
		LIST_FIRST(&np->n_cookies)->ndm_eocookie = 0;
	ncl_dircookie_unlock(np);
}
void ncl_invaldir ( struct vnode * vp ) { struct nfsnode * np = VTONFS ( vp ) ; KASSERT ( vp -> v_type == VDIR , ( " " ) ) ; ncl_dircookie_lock ( np ) ; np -> n_direofoffset = 0 ; np -> n_cookieverf . nfsuquad [ 0 ] = 0 ; np -> n_cookieverf . nfsuquad [ 1 ] = 0 ; if ( LIST_FIRST ( & np -> n_cookies ) ) LIST_FIRST ( & np -> n_cookies ) -> ndm_eocookie = 0 ; ncl_dircookie_unlock ( np ) ; }
Invalidate cached directory information, except for the actual directory
 blocks (which are invalidated separately).
Invalidate cached directory information except for the actual directory blocks ( which are invalidated separately ) .