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
This commit is contained in:
Ingo Weinhold
2010-02-20 17:24:14 +00:00
parent 4a1f668383
commit 24244d3ceb
+3 -2
View File
@@ -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