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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"