From 713bede839c70f875bbb0ed1b8357da7f47727e5 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 11 Apr 2010 14:49:06 +0000 Subject: [PATCH] full_scan_inactive_pages(): Don't call DEBUG_PAGE_ACCESS_START() before checking whether the page is busy. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36155 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm_page.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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