Assert that the vm object is locked on entry to swap_pager_freespace().

This commit is contained in:
Alan Cox 2003-06-07 20:43:16 +00:00
parent bb22b14154
commit 19ba4c8e49

View File

@ -546,7 +546,7 @@ swap_pager_freespace(object, start, size)
{
int s = splvm();
GIANT_REQUIRED;
VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
swp_pager_meta_free(object, start, size);
splx(s);
}