svn commit: r333701 - head/sys/vm

Matt Macy mmacy at FreeBSD.org
Thu May 17 03:19:32 UTC 2018


Author: mmacy
Date: Thu May 17 03:19:31 2018
New Revision: 333701
URL: https://svnweb.freebsd.org/changeset/base/333701

Log:
  Fix powerpc64 LINT
  
  vm_object_reserve() == true is impossible on power. Make conditional
  on VM_LEVEL_0_ORDER being defined.
  
  Reviewed by:	jeff
  Approved by:	sbruno

Modified:
  head/sys/vm/vm_domainset.c

Modified: head/sys/vm/vm_domainset.c
==============================================================================
--- head/sys/vm/vm_domainset.c	Thu May 17 02:54:30 2018	(r333700)
+++ head/sys/vm/vm_domainset.c	Thu May 17 03:19:31 2018	(r333701)
@@ -81,6 +81,7 @@ vm_domainset_iter_init(struct vm_domainset_iter *di, s
 	}
 	di->di_policy = di->di_domain->ds_policy;
 	if (di->di_policy == DOMAINSET_POLICY_INTERLEAVE) {
+#ifdef VM_LEVEL_0_ORDER
 		if (vm_object_reserv(obj)) {
 			/*
 			 * Color the pindex so we end up on the correct
@@ -88,7 +89,9 @@ vm_domainset_iter_init(struct vm_domainset_iter *di, s
 			 */
 			pindex += obj->pg_color;
 			pindex >>= VM_LEVEL_0_ORDER;
-		} else
+		}
+		else
+#endif			
 			pindex /= vm_domainset_default_stride;
 		/*
 		 * Offset pindex so the first page of each object does


More information about the svn-src-all mailing list