Reduce the scope of the page queues lock in vm_pgmoveco() now that

vm_page_sleep_if_busy() no longer requires the page queue lock to be held.

Correctly spell "TRUE".
This commit is contained in:
alc 2006-08-12 19:47:49 +00:00
parent 2262442192
commit b3c3e1dc95

View File

@ -105,9 +105,9 @@ vm_pgmoveco(vm_map_t mapa, vm_offset_t kaddr, vm_offset_t uaddr)
VM_OBJECT_LOCK(uobject);
retry:
if ((user_pg = vm_page_lookup(uobject, upindex)) != NULL) {
vm_page_lock_queues();
if (vm_page_sleep_if_busy(user_pg, 1, "vm_pgmoveco"))
if (vm_page_sleep_if_busy(user_pg, TRUE, "vm_pgmoveco"))
goto retry;
vm_page_lock_queues();
pmap_remove_all(user_pg);
vm_page_free(user_pg);
} else {