summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-11-13 19:50:06 +0000
committeralc <alc@FreeBSD.org>2002-11-13 19:50:06 +0000
commit9a2b5d5d203ab40ddb50a7934236d6881229e839 (patch)
treea86c979d707c42ede0dc41e28dec72af57c437ff /sys/vm/vm_object.c
parent4f9e24b0b082ff31dea167715080ab88905b8c43 (diff)
downloadFreeBSD-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/vm_object.c')
-rw-r--r--sys/vm/vm_object.c24
1 files changed, 0 insertions, 24 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.
OpenPOWER on IntegriCloud