diff options
author | jhb <jhb@FreeBSD.org> | 2009-08-29 02:17:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-08-29 02:17:40 +0000 |
commit | 73fabff57d1ecc2c407f206ee92ee5812c88cc1d (patch) | |
tree | 5531758776f35814aea36bf28cab4520b32453de | |
parent | 32c56ff372ff865eed836d26cc782659841a9b60 (diff) | |
download | FreeBSD-src-73fabff57d1ecc2c407f206ee92ee5812c88cc1d.zip FreeBSD-src-73fabff57d1ecc2c407f206ee92ee5812c88cc1d.tar.gz |
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
-rw-r--r-- | sys/vm/sg_pager.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |