From 24244d3cebfbbd7994d947012f90501a4d1e7a9f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 20 Feb 2010 17:24:14 +0000 Subject: [PATCH] idle_scan_active_pages(): vm_page_requeue() requires the caller to mark the page accessed for the access debugging feature. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35542 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm_page.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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