aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-02-24 20:57:43 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-02-24 20:57:43 +0000
commit655c349022fdd59abd960c2fec435cef2a84ba06 (patch)
tree06136a612fa254e5c9694031e3376358dcf9ee2e /sys/vm/vm_mmap.c
parent3a0916b8ea0f4788909c49d70465aee02765ce86 (diff)
Revert the addition of the freelist argument for the vm_map_delete()
function, done in r188334. Instead, collect the entries that shall be freed, in the deferred_freelist member of the map. Automatically purge the deferred freelist when map is unlocked. Tested by: pho Reviewed by: alc
Notes
Notes: svn path=/head/; revision=189015
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index 4ee9dfc57926..2d668c42b1c4 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -552,7 +552,6 @@ munmap(td, uap)
vm_offset_t addr;
vm_size_t size, pageoff;
vm_map_t map;
- vm_map_entry_t freelist;
addr = (vm_offset_t) uap->addr;
size = uap->len;
@@ -572,7 +571,6 @@ munmap(td, uap)
map = &td->td_proc->p_vmspace->vm_map;
if (addr < vm_map_min(map) || addr + size > vm_map_max(map))
return (EINVAL);
- freelist = NULL;
vm_map_lock(map);
#ifdef HWPMC_HOOKS
/*
@@ -595,9 +593,8 @@ munmap(td, uap)
}
#endif
/* returns nothing but KERN_SUCCESS anyway */
- vm_map_delete(map, addr, addr + size, &freelist);
+ vm_map_delete(map, addr, addr + size);
vm_map_unlock(map);
- vm_map_entry_free_freelist(map, freelist);
return (0);
}