From af99f17cdabbfe2aabaf398b0d20dbee173cb7f2 Mon Sep 17 00:00:00 2001 From: alc Date: Wed, 19 Dec 2007 23:09:45 +0000 Subject: 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. --- sys/vm/vm_phys.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/vm/vm_phys.c') diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index 8efdf3d..0fb685e 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -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 -- cgit v1.1