From 8a503ad2c98f62562e6343c550729dde1bf0892a Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 1 Sep 2009 15:50:07 +0000 Subject: [PATCH] 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) --- sys/vm/sg_pager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/vm/sg_pager.c b/sys/vm/sg_pager.c index 6e3da803295..a17fe82c2ef 100644 --- a/sys/vm/sg_pager.c +++ b/sys/vm/sg_pager.c @@ -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); }