mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Remove dead code that hasn't been needed since the demise of share maps
in various revisions of vm/vm_map.c between 1.148 and 1.153.
This commit is contained in:
parent
28c104a549
commit
81b9ee99e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106871
@ -972,30 +972,6 @@ vm_object_pmap_copy_1(vm_object_t object, vm_pindex_t start, vm_pindex_t end)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* vm_object_pmap_remove:
|
||||
*
|
||||
* Removes all physical pages in the specified
|
||||
* object range from all physical maps.
|
||||
*
|
||||
* The object must *not* be locked.
|
||||
*/
|
||||
void
|
||||
vm_object_pmap_remove(vm_object_t object, vm_pindex_t start, vm_pindex_t end)
|
||||
{
|
||||
vm_page_t p;
|
||||
|
||||
GIANT_REQUIRED;
|
||||
if (object == NULL)
|
||||
return;
|
||||
TAILQ_FOREACH(p, &object->memq, listq) {
|
||||
if (p->pindex >= start && p->pindex < end)
|
||||
pmap_page_protect(p, VM_PROT_NONE);
|
||||
}
|
||||
if ((start == 0) && (object->size == end))
|
||||
vm_object_clear_flag(object, OBJ_WRITEABLE);
|
||||
}
|
||||
|
||||
/*
|
||||
* vm_object_madvise:
|
||||
*
|
||||
|
@ -198,9 +198,7 @@ void vm_object_set_writeable_dirty (vm_object_t);
|
||||
void vm_object_init (void);
|
||||
void vm_object_page_clean (vm_object_t, vm_pindex_t, vm_pindex_t, boolean_t);
|
||||
void vm_object_page_remove (vm_object_t, vm_pindex_t, vm_pindex_t, boolean_t);
|
||||
void vm_object_pmap_copy (vm_object_t, vm_pindex_t, vm_pindex_t);
|
||||
void vm_object_pmap_copy_1 (vm_object_t, vm_pindex_t, vm_pindex_t);
|
||||
void vm_object_pmap_remove (vm_object_t, vm_pindex_t, vm_pindex_t);
|
||||
void vm_object_reference (vm_object_t);
|
||||
void vm_object_shadow (vm_object_t *, vm_ooffset_t *, vm_size_t);
|
||||
void vm_object_split(vm_map_entry_t);
|
||||
|
Loading…
Reference in New Issue
Block a user