Use MovePage() instead of RemovePage() + InsertPage().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37459 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1017,8 +1017,7 @@ VMAnonymousCache::_MergePagesSmallerSource(VMAnonymousCache* source)
|
|||||||
if (consumerPage == NULL) {
|
if (consumerPage == NULL) {
|
||||||
// the page is not yet in the consumer cache - move it upwards
|
// the page is not yet in the consumer cache - move it upwards
|
||||||
ASSERT_PRINT(!page->busy, "page: %p", page);
|
ASSERT_PRINT(!page->busy, "page: %p", page);
|
||||||
source->RemovePage(page);
|
MovePage(page);
|
||||||
InsertPage(page, (off_t)page->cache_offset << PAGE_SHIFT);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user