mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
kernel/vm: Reinstate assertion in InsertPage.
And fix it to be < not <= as well, and the same in MovePage.
This commit is contained in:
parent
5bfe88b36b
commit
71c04db60a
@ -791,9 +791,7 @@ VMCache::InsertPage(vm_page* page, off_t offset)
|
||||
T2(InsertPage(this, page, offset));
|
||||
|
||||
AssertLocked();
|
||||
#if 0
|
||||
ASSERT(offset >= virtual_base && offset <= virtual_end);
|
||||
#endif
|
||||
ASSERT(offset >= virtual_base && offset < virtual_end);
|
||||
|
||||
if (page->CacheRef() != NULL) {
|
||||
panic("insert page %p into cache %p: page cache is set to %p\n",
|
||||
@ -857,7 +855,7 @@ VMCache::MovePage(vm_page* page, off_t offset)
|
||||
|
||||
AssertLocked();
|
||||
oldCache->AssertLocked();
|
||||
ASSERT(offset >= virtual_base && offset <= virtual_end);
|
||||
ASSERT(offset >= virtual_base && offset < virtual_end);
|
||||
|
||||
// remove from old cache
|
||||
oldCache->pages.Remove(page);
|
||||
|
Loading…
x
Reference in New Issue
Block a user