FreeBSD/sys/kern/vfs_cache.c
/*
 * Invalidate all negative entries for a particular directory vnode.
 */
Invalidate all negative entries for a particular directory vnode.
Invalidate all negative entries for a particular directory vnode .
void
cache_purge_negative(struct vnode *vp)
{
	struct namecache *cp, *ncp;
	CTR1(KTR_VFS, "cache_purge_negative(%p)", vp);
	SDT_PROBE1(vfs, namecache, purge_negative, done, vp);
	CACHE_WLOCK();
	LIST_FOREACH_SAFE(cp, &vp->v_cache_src, nc_src, ncp) {
		if (cp->nc_vp == NULL)
			cache_zap(cp);
	}
	CACHE_WUNLOCK();
}
void cache_purge_negative ( struct vnode * vp ) { struct namecache * cp , * ncp ; CTR1 ( KTR_VFS , " " , vp ) ; SDT_PROBE1 ( vfs , namecache , purge_negative , done , vp ) ; CACHE_WLOCK ( ) ; LIST_FOREACH_SAFE ( cp , & vp -> v_cache_src , nc_src , ncp ) { if ( cp -> nc_vp == NULL ) cache_zap ( cp ) ; } CACHE_WUNLOCK ( ) ; }
Invalidate all negative entries for a particular directory vnode.
Invalidate all negative entries for a particular directory vnode .