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

Jeff Roberson jeff at FreeBSD.org
Wed Jan 3 01:47:35 UTC 2018


Author: jeff
Date: Wed Jan  3 01:47:34 2018
New Revision: 327509
URL: https://svnweb.freebsd.org/changeset/base/327509

Log:
  Don't run the match code when there are no domains

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	Wed Jan  3 01:19:18 2018	(r327508)
+++ user/jeff/numa/sys/vm/vm_phys.c	Wed Jan  3 01:47:34 2018	(r327509)
@@ -204,6 +204,9 @@ vm_phys_domain_match(int prefer, vm_paddr_t low, vm_pa
 	domainset_t mask;
 	int i;
 
+	if (vm_ndomains == 1 || mem_affinity == NULL)
+		return (0);
+
 	DOMAINSET_ZERO(&mask);
 	/*
 	 * Check for any memory that overlaps low, high.


More information about the svn-src-user mailing list