diff options
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_kern.c | 4 | ||||
-rw-r--r-- | vm/vm_map.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/vm/vm_kern.c b/vm/vm_kern.c index f29a014..dc7f7e4 100644 --- a/vm/vm_kern.c +++ b/vm/vm_kern.c @@ -269,9 +269,9 @@ projected_buffer_deallocate(map, start, end) /*Prepare for deallocation*/ if (entry->vme_start < start) - _vm_map_clip_start(map, entry, start); + _vm_map_clip_start(&map->hdr, entry, start); if (entry->vme_end > end) - _vm_map_clip_end(map, entry, end); + _vm_map_clip_end(&map->hdr, entry, end); if (map->first_free == entry) /*Adjust first_free hint*/ map->first_free = entry->vme_prev; entry->projected_on = 0; /*Needed to allow deletion*/ diff --git a/vm/vm_map.h b/vm/vm_map.h index 8961e1b..1b8423e 100644 --- a/vm/vm_map.h +++ b/vm/vm_map.h @@ -414,6 +414,7 @@ extern kern_return_t vm_map_copy_overwrite(vm_map_t, vm_offset_t, vm_map_copy_t, boolean_t); /* Discard a copy without using it */ extern void vm_map_copy_discard(vm_map_copy_t); +extern void vm_map_copy_page_discard(vm_map_copy_t); extern vm_map_copy_t vm_map_copy_copy(vm_map_copy_t); /* Page list continuation version of previous */ extern kern_return_t vm_map_copy_discard_cont(vm_map_copyin_args_t, |