Date: Sat, 19 May 2018 23:49:14 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333903 - head/sys/vm Message-ID: <201805192349.w4JNnEnI026423@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sat May 19 23:49:13 2018 New Revision: 333903 URL: https://svnweb.freebsd.org/changeset/base/333903 Log: Use the canonical check for reservation support. Modified: head/sys/vm/vm_domainset.c Modified: head/sys/vm/vm_domainset.c ============================================================================== --- head/sys/vm/vm_domainset.c Sat May 19 23:19:24 2018 (r333902) +++ head/sys/vm/vm_domainset.c Sat May 19 23:49:13 2018 (r333903) @@ -81,7 +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_NRESERVLEVEL > 0 if (vm_object_reserv(obj)) { /* * Color the pindex so we end up on the correct @@ -89,9 +89,8 @@ vm_domainset_iter_init(struct vm_domainset_iter *di, s */ pindex += obj->pg_color; pindex >>= VM_LEVEL_0_ORDER; - } - else -#endif + } 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?201805192349.w4JNnEnI026423>