diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 395ddcf2f5a9..25380893f511 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_object.c,v 1.28 1995/03/01 23:29:57 davidg Exp $ + * $Id: vm_object.c,v 1.29 1995/03/07 17:25:46 davidg Exp $ */ /* @@ -906,27 +906,6 @@ vm_object_shadow(object, offset, length) *object = result; } -/* - * Set the specified object's pager to the specified pager. - */ - -void -vm_object_setpager(object, pager, paging_offset, - read_only) - vm_object_t object; - vm_pager_t pager; - vm_offset_t paging_offset; - boolean_t read_only; -{ - vm_object_lock(object); /* XXX ? */ - if (object->pager && object->pager != pager) { - panic("!!!pager already allocated!!!\n"); - } - object->pager = pager; - object->paging_offset = paging_offset; - vm_object_unlock(object); /* XXX ? */ -} - /* * vm_object_hash hashes the pager/id pair. */ diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 19961807f2de..36851bcef8ae 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -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.39 1995/02/25 18:39:04 bde Exp $ + * $Id: vm_pageout.c,v 1.40 1995/03/01 23:30:02 davidg Exp $ */ /* @@ -219,7 +219,7 @@ vm_pageout_clean(m, sync) pager = vm_pager_allocate(PG_DFLT, (caddr_t) 0, object->size, VM_PROT_ALL, 0); if (pager != NULL) { - vm_object_setpager(object, pager, 0, FALSE); + object->pager = pager; } }