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:
parent
6c5a134228
commit
61728e1e09
@ -1017,8 +1017,7 @@ VMAnonymousCache::_MergePagesSmallerSource(VMAnonymousCache* source)
|
||||
if (consumerPage == NULL) {
|
||||
// the page is not yet in the consumer cache - move it upwards
|
||||
ASSERT_PRINT(!page->busy, "page: %p", page);
|
||||
source->RemovePage(page);
|
||||
InsertPage(page, (off_t)page->cache_offset << PAGE_SHIFT);
|
||||
MovePage(page);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user