kernel/vm: Clear busy_io along with the other page flags.

Change-Id: I796e6d01678e46eda9815c1c290b56975b6dbdfe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10625
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2026-03-30 22:11:53 +00:00
committed by waddlesplash
parent 5eaf967479
commit b37e0a513d
+6 -3
View File
@@ -3695,9 +3695,10 @@ vm_page_allocate_page(vm_page_reservation* reservation, uint32 flags)
int oldPageState = page->State();
page->SetState(pageState);
page->busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
page->usage_count = 0;
page->busy_io = false;
page->accessed = false;
page->modified = false;
page->usage_count = 0;
locker.Unlock();
@@ -3813,9 +3814,10 @@ allocate_page_run(page_num_t start, page_num_t length, uint32 flags,
if (pageAllocated) {
page.SetState(flags & VM_PAGE_ALLOC_STATE);
page.busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
page.usage_count = 0;
page.busy_io = false;
page.accessed = false;
page.modified = false;
page.usage_count = 0;
}
}
@@ -3856,9 +3858,10 @@ allocate_page_run(page_num_t start, page_num_t length, uint32 flags,
page.SetState(flags & VM_PAGE_ALLOC_STATE);
page.busy = (flags & VM_PAGE_ALLOC_BUSY) != 0;
page.usage_count = 0;
page.busy_io = false;
page.accessed = false;
page.modified = false;
page.usage_count = 0;
freePages.InsertBefore(freePage, &page);
freedCachedPages++;