kernel/vm: use DoublyLinkedList for VMCache areas list
Change-Id: I0c6a231f245fa542f5d90959755de1e6ba39eb8e Reviewed-on: https://review.haiku-os.org/c/haiku/+/8685 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
+1
-1
@@ -291,7 +291,7 @@ reserve_pages(file_cache_ref* ref, vm_page_reservation* reservation,
|
||||
VMCache* cache = ref->cache;
|
||||
cache->Lock();
|
||||
|
||||
if (cache->consumers.IsEmpty() && cache->areas == NULL
|
||||
if (cache->consumers.IsEmpty() && cache->areas.IsEmpty()
|
||||
&& access_is_sequential(ref)) {
|
||||
// we are not mapped, and we're accessed sequentially
|
||||
|
||||
|
||||
Reference in New Issue
Block a user