mmlr (distracted) + bonefish:
* Turn VMCache::consumers C list into a DoublyLinkedList. * Use object caches for the different VMCache types and the VMCacheRefs. The purpose is to reduce slab area fragmentation. * Requires the introduction of a pure virtual VMCache::DeleteObject() method, implemented in the derived classes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43133 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
-1
@@ -290,7 +290,7 @@ reserve_pages(file_cache_ref* ref, vm_page_reservation* reservation,
|
||||
VMCache* cache = ref->cache;
|
||||
cache->Lock();
|
||||
|
||||
if (list_is_empty(&cache->consumers) && cache->areas == NULL
|
||||
if (cache->consumers.IsEmpty() && cache->areas == NULL
|
||||
&& access_is_sequential(ref)) {
|
||||
// we are not mapped, and we're accessed sequentially
|
||||
|
||||
|
||||
Reference in New Issue
Block a user