kernel/vm: Add assert to VMCache::MarkPageUnbusy.
Change-Id: Iec29bdfa5f0a25d9f255c6eee1937bc7c9cc4c3a Reviewed-on: https://review.haiku-os.org/c/haiku/+/10628 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
5554f0b829
commit
28e6329e8e
@@ -353,6 +353,8 @@ void
|
|||||||
VMCache::MarkPageUnbusy(vm_page* page)
|
VMCache::MarkPageUnbusy(vm_page* page)
|
||||||
{
|
{
|
||||||
ASSERT(page->busy);
|
ASSERT(page->busy);
|
||||||
|
ASSERT(page->Cache() == this);
|
||||||
|
|
||||||
page->busy = false;
|
page->busy = false;
|
||||||
NotifyPageEvents(page, PAGE_EVENT_NOT_BUSY);
|
NotifyPageEvents(page, PAGE_EVENT_NOT_BUSY);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user