This commit is contained in:
2026-08-11 17:48:20 +02:00
committed by Marvin Friedrich
parent cf33867e68
commit 0e2d4ed8c6
55 changed files with 279 additions and 346 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ static zn_status_t paged_get_page(struct vmo* vmo, uintptr_t offset_idx, struct
// Try to find the requested page in the cache.
struct page_list* iter;
SLIST_FOREACH(iter, &paged->cache, next) {
list_foreach(iter, &paged->cache, next) {
if (iter->offset != offset_idx)
continue;
@@ -128,7 +128,7 @@ static zn_status_t paged_get_page(struct vmo* vmo, uintptr_t offset_idx, struct
entry->value = new_page;
// Add page to the object cache.
SLIST_INSERT_HEAD(&paged->cache, entry, next);
list_insert_head(&paged->cache, entry, next);
*out = new_page;
return ZN_OK;