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