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
This commit is contained in:
parent
b13b0b0f4e
commit
713bede839
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user