Deleted vm_object_setpager().
This commit is contained in:
parent
4bb624613f
commit
61ca29b0e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7015
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user