From 73fabff57d1ecc2c407f206ee92ee5812c88cc1d Mon Sep 17 00:00:00 2001 From: jhb Date: Sat, 29 Aug 2009 02:17:40 +0000 Subject: 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 --- sys/vm/sg_pager.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/vm/sg_pager.c') diff --git a/sys/vm/sg_pager.c b/sys/vm/sg_pager.c index 6e3da80..a17fe82 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); } -- cgit v1.1