Completed the fix for attempting to page out pages via the device_pager.

Submitted by:	John Dyson
This commit is contained in:
dg 1995-01-28 02:02:25 +00:00
parent 7f0d63876d
commit fc5dd24ded

View File

@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_pageout.c,v 1.30 1995/01/10 07:32:49 davidg Exp $
* $Id: vm_pageout.c,v 1.31 1995/01/24 10:13:58 davidg Exp $
*/
/*
@ -337,6 +337,9 @@ vm_pageout_object_deactivate_pages(map, object, count, map_remove_only)
if (count == 0)
count = 1;
if (object->pager && (object->pager->pg_type == PG_DEVICE))
return 0;
if (object->shadow) {
if (object->shadow->ref_count == 1)
dcount += vm_pageout_object_deactivate_pages(map, object->shadow, count / 2 + 1, map_remove_only);