func (c *DirentCache) Invalidate() {
	if c == nil {
		return
	}
	c.mu.Lock()
	for c.list.Front() != nil {
		c.remove(c.list.Front())
	}
	c.mu.Unlock()
}
// Invalidate removes all Dirents from the cache, calling DecRef on each.
Invalidate removes all Dirents from the cache, calling DecRef on each.
// Invalidate removes all Dirents from the cache calling DecRef on each .
func (c *DirentCache) Invalidate() {
	if c == nil {
		return
	}
	c.mu.Lock()
	for c.list.Front() != nil {
		c.remove(c.list.Front())
	}
	c.mu.Unlock()
}
func ( c * DirentCache ) Invalidate ( ) { if c == nil { return } c . mu . Lock ( ) for c . list . Front ( ) != nil { c . remove ( c . list . Front ( ) ) } c . mu . Unlock ( ) }
Invalidate removes all Dirents from the cache, calling DecRef on each.
Invalidate removes all Dirents from the cache calling DecRef on each .