free_cached_page(): Removed incorrect asserts. The same ones appear a few
lines later anyway, after the cache has been locked and it has been verified that the page is still a candidate. Fixes #5432. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35539 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2013,10 +2013,6 @@ find_cached_page_candidate(struct vm_page &marker)
|
||||
static bool
|
||||
free_cached_page(vm_page *page, bool dontWait)
|
||||
{
|
||||
ASSERT(!page->busy);
|
||||
ASSERT(!page->modified);
|
||||
ASSERT(page->wired_count == 0 && page->mappings.IsEmpty());
|
||||
|
||||
// try to lock the page's cache
|
||||
if (vm_cache_acquire_locked_page_cache(page, dontWait) == NULL)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user