1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Assert that the containing vm object is locked in vm_page_flash().

This commit is contained in:
Alan Cox 2004-10-25 19:52:44 +00:00
parent 2ee4b70bec
commit 63bb7041cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136952

View File

@ -312,6 +312,8 @@ vm_page_busy(vm_page_t m)
void
vm_page_flash(vm_page_t m)
{
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
if (m->flags & PG_WANTED) {
vm_page_flag_clear(m, PG_WANTED);
wakeup(m);