+checklocks:c.listCacheMutex
(extraBytes int64)
| 281 | |
| 282 | // +checklocks:c.listCacheMutex |
| 283 | func (c *PersistentCache) aboveHardLimit(extraBytes int64) bool { |
| 284 | if c.sweep.LimitBytes <= 0 { |
| 285 | return false |
| 286 | } |
| 287 | |
| 288 | return c.listCache.totalDataBytes+extraBytes+c.pendingWriteBytes > c.sweep.LimitBytes |
| 289 | } |
| 290 | |
| 291 | // +checklocks:c.listCacheMutex |
| 292 | func (c *PersistentCache) sweepLocked(ctx context.Context) { |