svn commit: r357892 - head/sys/vm
Mark Johnston
markj at FreeBSD.org
Thu Feb 13 23:15:22 UTC 2020
Author: markj
Date: Thu Feb 13 23:15:21 2020
New Revision: 357892
URL: https://svnweb.freebsd.org/changeset/base/357892
Log:
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
Modified:
head/sys/vm/uma_core.c
Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c Thu Feb 13 23:04:11 2020 (r357891)
+++ head/sys/vm/uma_core.c Thu Feb 13 23:15:21 2020 (r357892)
@@ -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
More information about the svn-src-all
mailing list