Set valid bits when updating a fake page.
authorSimon Schubert <corecode@dragonflybsd.org>
Mon, 21 Jan 2008 10:25:18 +0000 (10:25 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Mon, 21 Jan 2008 10:25:18 +0000 (10:25 +0000)
Obtained-from:  FreeBSD (rev 1.75)

sys/vm/device_pager.c

index c1cbea0..e8a436b 100644 (file)
@@ -37,7 +37,7 @@
  *
  *     @(#)device_pager.c      8.1 (Berkeley) 6/11/93
  * $FreeBSD: src/sys/vm/device_pager.c,v 1.46.2.1 2000/08/02 21:54:37 peter Exp $
  *
  *     @(#)device_pager.c      8.1 (Berkeley) 6/11/93
  * $FreeBSD: src/sys/vm/device_pager.c,v 1.46.2.1 2000/08/02 21:54:37 peter Exp $
- * $DragonFly: src/sys/vm/device_pager.c,v 1.12 2006/11/20 20:53:06 dillon Exp $
+ * $DragonFly: src/sys/vm/device_pager.c,v 1.13 2008/01/21 10:25:18 corecode Exp $
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -202,6 +202,7 @@ dev_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage)
                 * with the new physical address.
                 */
                m[reqpage]->phys_addr = paddr;
                 * with the new physical address.
                 */
                m[reqpage]->phys_addr = paddr;
+               m[reqpage]->valid = VM_PAGE_BITS_ALL;
        } else {
                /*
                 * Replace the passed in reqpage page with our own fake page
        } else {
                /*
                 * Replace the passed in reqpage page with our own fake page