svn commit: r343054 - head/sys/vm

Gleb Smirnoff glebius at FreeBSD.org
Tue Jan 15 18:49:32 UTC 2019


Author: glebius
Date: Tue Jan 15 18:49:31 2019
New Revision: 343054
URL: https://svnweb.freebsd.org/changeset/base/343054

Log:
  Remove harmless leftover from code that cycles over zone's kegs. Just use +
  instead of +=. There is no functional change.

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Tue Jan 15 18:47:19 2019	(r343053)
+++ head/sys/vm/uma_core.c	Tue Jan 15 18:49:31 2019	(r343054)
@@ -3914,10 +3914,10 @@ sysctl_vm_zone_stats(SYSCTL_HANDLER_ARGS)
 					kz->uk_ppera;
 			else
 				uth.uth_pages = kz->uk_pages;
-			uth.uth_maxpages += (z->uz_max_items / kz->uk_ipers) *
+			uth.uth_maxpages = (z->uz_max_items / kz->uk_ipers) *
 			    kz->uk_ppera;
 			uth.uth_limit = z->uz_max_items;
-			uth.uth_keg_free += z->uz_keg->uk_free;
+			uth.uth_keg_free = z->uz_keg->uk_free;
 
 			/*
 			 * A zone is secondary is it is not the first entry


More information about the svn-src-head mailing list