Enable vm_page_free() and vm_page_free_zero() to be called on some pages

without the page queues lock being held, specifically, pages that are not
contained in a vm object and not a member of a page queue.
This commit is contained in:
Alan Cox 2007-02-18 05:54:42 +00:00
parent 497057eeea
commit 711585d087

View File

@ -479,7 +479,8 @@ vm_page_unhold(vm_page_t mem)
void
vm_page_free(vm_page_t m)
{
vm_page_flag_clear(m, PG_ZERO);
m->flags &= ~PG_ZERO;
vm_page_free_toq(m);
}
@ -491,7 +492,8 @@ vm_page_free(vm_page_t m)
void
vm_page_free_zero(vm_page_t m)
{
vm_page_flag_set(m, PG_ZERO);
m->flags |= PG_ZERO;
vm_page_free_toq(m);
}