func (c *DirentCache) Remove(d *Dirent) {
	if c == nil || c.maxSize == 0 {
		return
	}
	c.mu.Lock()
	if !c.contains(d) {
		c.mu.Unlock()
		return
	}
	c.remove(d)
	c.mu.Unlock()
}
// Remove removes the element from the cache and decrements its refCount. It
// also sets the previous and next elements to nil, which allows us to
// determine if a given element is in the cache.
Remove removes the element from the cache and decrements its refCount. It
also sets the previous and next elements to nil, which allows us to
determine if a given element is in the cache.
// Remove removes the element from the cache and decrements its refCount . It // also sets the previous and next elements to nil which allows us to // determine if a given element is in the cache .
func (c *DirentCache) Remove(d *Dirent) {
	if c == nil || c.maxSize == 0 {
		return
	}
	c.mu.Lock()
	if !c.contains(d) {
		c.mu.Unlock()
		return
	}
	c.remove(d)
	c.mu.Unlock()
}
func ( c * DirentCache ) Remove ( d * Dirent ) { if c == nil || c . maxSize == 0 { return } c . mu . Lock ( ) if ! c . contains ( d ) { c . mu . Unlock ( ) return } c . remove ( d ) c . mu . Unlock ( ) }
Remove removes the element from the cache and decrements its refCount.
Remove removes the element from the cache and decrements its refCount .