]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cache: fix a brainfart in r347505
authorMateusz Guzik <mjg@FreeBSD.org>
Sun, 12 May 2019 07:56:01 +0000 (07:56 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Sun, 12 May 2019 07:56:01 +0000 (07:56 +0000)
commit8ba6c1391b7c98221f4a5f4a38986ec4553aefca
tree95fbc3c61c3179f040cf36c3e88b1bacb02b59e3
parent2425b5168ca9c4969c8d6bda0a15dd61eb0d4698
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
sys/kern/vfs_cache.c