Update the zone-global count of cached items in bucket_cache_reclaim().

This was missed in r351673.  The count is used to enfore cache limits,
which are rarely used.

Discussed with:	jeff
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2020-02-13 23:15:21 +00:00
parent ec37341fa9
commit 65c30662b6

View File

@ -1204,6 +1204,7 @@ bucket_cache_reclaim(uma_zone_t zone, bool drain)
tofree = bucket->ub_cnt;
STAILQ_REMOVE_HEAD(&zdom->uzd_buckets, ub_link);
zdom->uzd_nitems -= tofree;
zone->uz_bkt_count -= tofree;
/*
* Shift the bounds of the current WSS interval to avoid