Spotted this while reading through page code. The usage_count would be set for
wrong pages when allocating a page run unless the run started at page 0 as the start offset was missing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26245 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e511f726ea
commit
45b309e39d
@ -1799,7 +1799,7 @@ vm_page_allocate_page_run(int pageState, addr_t length)
|
||||
sPages[start + i].is_cleared
|
||||
= sPages[start + i].state == PAGE_STATE_CLEAR;
|
||||
set_page_state_nolock(&sPages[start + i], PAGE_STATE_BUSY);
|
||||
sPages[i].usage_count = 2;
|
||||
sPages[start + i].usage_count = 2;
|
||||
}
|
||||
firstPage = &sPages[start];
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user