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
This commit is contained in:
parent
03b7d7a3c3
commit
73e37d1deb
@ -81,6 +81,7 @@ vm_domainset_iter_init(struct vm_domainset_iter *di, struct vm_object *obj,
|
||||
}
|
||||
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, struct vm_object *obj,
|
||||
*/
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user