Refine the assertion in vm_object_clear_flag() to allow operation on the

kmem_object without Giant.  In that case, assert that the kmem_object's
mutex is held.
This commit is contained in:
Alan Cox 2003-01-03 19:19:08 +00:00
parent d6b3a1df18
commit 5440b5a974

View File

@ -261,7 +261,8 @@ vm_object_set_flag(vm_object_t object, u_short bits)
void
vm_object_clear_flag(vm_object_t object, u_short bits)
{
GIANT_REQUIRED;
mtx_assert(object == kmem_object ? &object->mtx : &Giant, MA_OWNED);
object->flags &= ~bits;
}