diff --git a/src/system/kernel/vm/vm_page.cpp b/src/system/kernel/vm/vm_page.cpp index fc692969ae..33144a1869 100644 --- a/src/system/kernel/vm/vm_page.cpp +++ b/src/system/kernel/vm/vm_page.cpp @@ -2104,15 +2104,16 @@ idle_scan_active_pages(page_stats& pageStats) continue; } + DEBUG_PAGE_ACCESS_START(page); + if (page->busy) { // page is busy -- requeue at the end vm_page_requeue(page, true); cache->ReleaseRefAndUnlock(); + DEBUG_PAGE_ACCESS_END(page); continue; } - DEBUG_PAGE_ACCESS_START(page); - // Get the page active/modified flags and update the page's usage count. // We completely unmap inactive temporary pages. This saves us to // iterate through the inactive list as well, since we'll be notified