Assert that the page queues lock rather than Giant is held in

vm_page_flag_clear().
This commit is contained in:
Alan Cox 2002-12-28 22:49:37 +00:00
parent 2cde7c14b4
commit 2ee5fea7d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108370

View File

@ -285,7 +285,8 @@ vm_page_flag_set(vm_page_t m, unsigned short bits)
void
vm_page_flag_clear(vm_page_t m, unsigned short bits)
{
GIANT_REQUIRED;
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
m->flags &= ~bits;
}