diff options
Diffstat (limited to 'sys/vm/vm_object.c')
| -rw-r--r-- | sys/vm/vm_object.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 29b45b057ff7..c9cb02b4d4e6 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. |
