Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2018 03:19:32 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333701 - head/sys/vm
Message-ID:  <201805170319.w4H3JW0O022995@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805170319.w4H3JW0O022995>