Missed that one in r36228: DebugHasPage() implementation.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-04-13 17:34:32 +00:00
parent 86875ad9d1
commit ca4dd26afd
+13
View File
@@ -494,6 +494,19 @@ VMAnonymousCache::HasPage(off_t offset)
}
bool
VMAnonymousCache::DebugHasPage(off_t offset)
{
page_num_t pageIndex = offset >> PAGE_SHIFT;
swap_hash_key key = { this, pageIndex };
swap_block* swap = sSwapHashTable.Lookup(key);
if (swap == NULL)
return false;
return swap->swap_slots[pageIndex & SWAP_BLOCK_MASK] != SWAP_SLOT_NONE;
}
status_t
VMAnonymousCache::Read(off_t offset, const iovec* vecs, size_t count,
uint32 flags, size_t* _numBytes)