Correct one half of a loop continuation condition in vm_phys_unfree_page().
At present, this error is inconsequential; the other half of the loop continuation condition is sufficient to achieve correct execution.
This commit is contained in:
parent
673f5a8b44
commit
bc8794a12a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174799
@ -486,7 +486,7 @@ vm_phys_unfree_page(vm_page_t m)
|
||||
*/
|
||||
seg = &vm_phys_segs[m->segind];
|
||||
for (m_set = m, order = 0; m_set->order == VM_NFREEORDER &&
|
||||
order < VM_NFREEORDER; ) {
|
||||
order < VM_NFREEORDER - 1; ) {
|
||||
order++;
|
||||
pa = m->phys_addr & (~(vm_paddr_t)0 << (PAGE_SHIFT + order));
|
||||
KASSERT(pa >= seg->start && pa < seg->end,
|
||||
@ -499,8 +499,6 @@ vm_phys_unfree_page(vm_page_t m)
|
||||
KASSERT(m_set->order < VM_NFREEORDER,
|
||||
("vm_phys_unfree_page: page %p has unexpected order %d",
|
||||
m_set, m_set->order));
|
||||
KASSERT(order < VM_NFREEORDER,
|
||||
("vm_phys_unfree_page: order %d is out of range", order));
|
||||
|
||||
/*
|
||||
* Next, remove "m_set" from the free lists. Finally, extract
|
||||
|
Loading…
Reference in New Issue
Block a user