mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58:22 +00:00
vmmcache: fix page retry
This commit is contained in:
@@ -113,7 +113,7 @@ int vmmcache_getpage(vnode_t *vnode, uintmax_t offset, page_t **res) {
|
|||||||
|
|
||||||
// in the case of a retry, release the allocated page here
|
// in the case of a retry, release the allocated page here
|
||||||
if (newpage)
|
if (newpage)
|
||||||
pmm_release(newpage);
|
pmm_release(pmm_getpageaddress(newpage));
|
||||||
|
|
||||||
// wait for page to be ready
|
// wait for page to be ready
|
||||||
while ((page->flags & (PAGE_FLAGS_READY | PAGE_FLAGS_ERROR)) == 0)
|
while ((page->flags & (PAGE_FLAGS_READY | PAGE_FLAGS_ERROR)) == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user