The busy page could also be in another cache that is layered upon the merged one,

so we can't easily check if the remaining mappings are valid - therefore I disabled
the check completely.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20654 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-04-11 15:50:11 +00:00
parent 83ecc79510
commit 861b3c0b6f

View File

@ -539,10 +539,12 @@ vm_cache_remove_consumer(vm_cache_ref *cacheRef, vm_cache *consumer)
vm_cache_remove_page(cacheRef, page);
vm_cache_insert_page(consumerRef, page,
(off_t)page->cache_offset << PAGE_SHIFT);
#if 0
} else if (consumerPage->state != PAGE_STATE_BUSY
&& (page->mappings != 0 || page->wired_count != 0)) {
panic("page %p has still mappings (consumer cache %p)!",
page, consumerRef);
#endif
}
}