diff --git a/src/system/kernel/vm/vm_page.cpp b/src/system/kernel/vm/vm_page.cpp index ae8e27a7f6..d95410a7ce 100644 --- a/src/system/kernel/vm/vm_page.cpp +++ b/src/system/kernel/vm/vm_page.cpp @@ -2166,16 +2166,15 @@ 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