vm_page_schedule_write_page_range(): The debug code was a bit too possessive.
We can only access the page, if it is not busy. Fixes #5228. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1813,14 +1813,12 @@ vm_page_schedule_write_page_range(struct VMCache *cache, uint32 firstPage,
|
|||||||
if (page->cache_offset >= endPage)
|
if (page->cache_offset >= endPage)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
DEBUG_PAGE_ACCESS_START(page);
|
|
||||||
|
|
||||||
if (page->state == PAGE_STATE_MODIFIED) {
|
if (page->state == PAGE_STATE_MODIFIED) {
|
||||||
|
DEBUG_PAGE_ACCESS_START(page);
|
||||||
vm_page_requeue(page, false);
|
vm_page_requeue(page, false);
|
||||||
modified++;
|
modified++;
|
||||||
|
DEBUG_PAGE_ACCESS_END(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_PAGE_ACCESS_END(page);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modified > 0)
|
if (modified > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user