diff options
author | alc <alc@FreeBSD.org> | 2002-11-13 19:50:06 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-11-13 19:50:06 +0000 |
commit | 9a2b5d5d203ab40ddb50a7934236d6881229e839 (patch) | |
tree | a86c979d707c42ede0dc41e28dec72af57c437ff /sys/vm | |
parent | 4f9e24b0b082ff31dea167715080ab88905b8c43 (diff) | |
download | FreeBSD-src-9a2b5d5d203ab40ddb50a7934236d6881229e839.zip FreeBSD-src-9a2b5d5d203ab40ddb50a7934236d6881229e839.tar.gz |
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.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_object.c | 24 | ||||
-rw-r--r-- | sys/vm/vm_object.h | 2 |
2 files changed, 0 insertions, 26 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 29b45b0..c9cb02b 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -973,30 +973,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: * * Implements the madvise function at the object/page level. diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index f73a729..f1a5351 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -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); |