Added call to page_activate before deactivate. This fix allows pages in
authorDavid Greenman <davidg@Root.COM>
Sun, 25 Jul 1993 09:57:43 +0000 (09:57 +0000)
committerDavid Greenman <davidg@Root.COM>
Sun, 25 Jul 1993 09:57:43 +0000 (09:57 +0000)
shadow objects of running processes to be pageable (they previously
weren't). This is because the call to deactivate is a noop if the page
is not currently active. Originally suggested by Donn Seeley at BSDI.

sys/vm/vm_fault.c

index b521aed..ce2c538 100644 (file)
@@ -62,7 +62,7 @@
  * rights to redistribute these changes.
  */
 
  * rights to redistribute these changes.
  */
 
-static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/vm/vm_fault.c,v 1.2 1993/06/15 15:07:46 nate Exp $";
+static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/vm/vm_fault.c,v 1.3 1993/07/12 16:13:57 davidg Exp $";
 
 /*
  *     Page fault handling module.
 
 /*
  *     Page fault handling module.
@@ -528,6 +528,7 @@ thread_wakeup(&vm_pages_needed); /* XXX */
                         */
 
                        vm_page_lock_queues();
                         */
 
                        vm_page_lock_queues();
+                       vm_page_activate(m);
                        vm_page_deactivate(m);
                        pmap_page_protect(VM_PAGE_TO_PHYS(m), VM_PROT_NONE);
                        vm_page_unlock_queues();
                        vm_page_deactivate(m);
                        pmap_page_protect(VM_PAGE_TO_PHYS(m), VM_PROT_NONE);
                        vm_page_unlock_queues();