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
Parents
rS347509: MFC r347150, r347180:
Branches
Unknown
Tags
Unknown