+checklocks:c.listCacheMutex
(extraBytes int64)
| 276 | |
| 277 | // +checklocks:c.listCacheMutex |
| 278 | func (c *PersistentCache) aboveSoftLimit(extraBytes int64) bool { |
| 279 | return c.listCache.totalDataBytes+extraBytes+c.pendingWriteBytes > c.sweep.MaxSizeBytes |
| 280 | } |
| 281 | |
| 282 | // +checklocks:c.listCacheMutex |
| 283 | func (c *PersistentCache) aboveHardLimit(extraBytes int64) bool { |