svn commit: r327535 - user/jeff/numa/sys/vm

Jeff Roberson jeff at FreeBSD.org
Thu Jan 4 00:36:54 UTC 2018


Author: jeff
Date: Thu Jan  4 00:36:52 2018
New Revision: 327535
URL: https://svnweb.freebsd.org/changeset/base/327535

Log:
  Use the correct terminiator for the mem_affinity iterator in
  vm_phys_domain_match

Modified:
  user/jeff/numa/sys/vm/vm_phys.c

Modified: user/jeff/numa/sys/vm/vm_phys.c
==============================================================================
--- user/jeff/numa/sys/vm/vm_phys.c	Thu Jan  4 00:02:47 2018	(r327534)
+++ user/jeff/numa/sys/vm/vm_phys.c	Thu Jan  4 00:36:52 2018	(r327535)
@@ -212,7 +212,7 @@ vm_phys_domain_match(int prefer, vm_paddr_t low, vm_pa
 	/*
 	 * Check for any memory that overlaps low, high.
 	 */
-	for (i = 0; i < vm_ndomains; i++)
+	for (i = 0; mem_affinity[i].end != 0; i++)
 		if (mem_affinity[i].start <= high &&
 		    mem_affinity[i].end >= low)
 			DOMAINSET_SET(mem_affinity[i].domain, &mask);


More information about the svn-src-user mailing list