mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
MFC 196637:
Mark the fake pages constructed by the OBJT_SG pager valid. This was accidentally lost at one point during the PAT development. Without this fix vm_pager_get_pages() was zeroing each of the pages. Approved by: re (kib)
This commit is contained in:
parent
be5b3af890
commit
8a503ad2c9
1 changed files with 1 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ sg_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage)
|
|||
vm_page_unlock_queues();
|
||||
vm_page_insert(page, object, offset);
|
||||
m[reqpage] = page;
|
||||
page->valid = VM_PAGE_BITS_ALL;
|
||||
|
||||
return (VM_PAGER_OK);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue