HomeFreeBSD

cache: fix a brainfart in r347505

Description

cache: fix a brainfart in r347505

If bumping over the counter goes over the limit we have to decrement it back.

Previous code would only bump the counter after adding the entry (thus allowing
the cache to go over the limit).

Sponsored by: The FreeBSD Foundation

Details

Provenance
mjgAuthored on May 12 2019, 7:56 AM
Parents
rG2425b5168ca9: seqc: fix sed-introduced typos (seqcuence -> sequence)
Branches
Unknown
Tags
Unknown

Event Timeline