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.

Submitted by:	czander @ NVidia
MFC after:	3 days
This commit is contained in:
John Baldwin 2009-08-29 02:17:40 +00:00
parent 3132ad0d1d
commit 58e279db02

View File

@ -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);
}