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:
Ingo Weinhold
2010-02-20 16:45:44 +00:00
parent bd7645a12a
commit 3e5343f226
-4
View File
@@ -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;