stuff2
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user