func (c *DirentCache) maybeShrink() {
	for c.maxSize > 0 && c.currentSize > c.maxSize {
		c.remove(c.list.Back())
	}
}
// shrink removes the oldest element until the list is under the size limit.
shrink removes the oldest element until the list is under the size limit.
// shrink removes the oldest element until the list is under the size limit .
func (c *DirentCache) maybeShrink() {
	for c.maxSize > 0 && c.currentSize > c.maxSize {
		c.remove(c.list.Back())
	}
}
func ( c * DirentCache ) maybeShrink ( ) { for c . maxSize > 0 && c . currentSize > c . maxSize { c . remove ( c . list . Back ( ) ) } }
shrink removes the oldest element until the list is under the size limit.
shrink removes the oldest element until the list is under the size limit .