o Assert that the page queues lock is held in vm_page_try_to_free().

This commit is contained in:
alc 2002-07-20 20:12:57 +00:00
parent a01b1feba6
commit 4de6bb3a4d

View File

@ -1387,6 +1387,8 @@ vm_page_try_to_cache(vm_page_t m)
int
vm_page_try_to_free(vm_page_t m)
{
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if (m->dirty || m->hold_count || m->busy || m->wire_count ||
(m->flags & (PG_BUSY|PG_UNMANAGED))) {
return (0);