diff options
author | kib <kib@FreeBSD.org> | 2009-02-24 20:57:43 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-02-24 20:57:43 +0000 |
commit | 66c697aade1d10f1d217e0bd2c794cc04d3ce45d (patch) | |
tree | 06136a612fa254e5c9694031e3376358dcf9ee2e /sys/vm/vm_unix.c | |
parent | 47de55da04390dc6519374dbd6cd9d3f2a9400c6 (diff) | |
download | FreeBSD-src-66c697aade1d10f1d217e0bd2c794cc04d3ce45d.zip FreeBSD-src-66c697aade1d10f1d217e0bd2c794cc04d3ce45d.tar.gz |
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
Diffstat (limited to 'sys/vm/vm_unix.c')
-rw-r--r-- | sys/vm/vm_unix.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index 8092102..cd98be9 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -72,7 +72,6 @@ obreak(td, uap) struct obreak_args *uap; { struct vmspace *vm = td->td_proc->p_vmspace; - vm_map_entry_t freelist; vm_offset_t new, old, base; rlim_t datalim, vmemlim; int rv; @@ -86,7 +85,6 @@ obreak(td, uap) do_map_wirefuture = FALSE; new = round_page((vm_offset_t)uap->nsize); - freelist = NULL; vm_map_lock(&vm->vm_map); base = round_page((vm_offset_t) vm->vm_daddr); @@ -140,7 +138,7 @@ obreak(td, uap) do_map_wirefuture = TRUE; } } else if (new < old) { - rv = vm_map_delete(&vm->vm_map, new, old, &freelist); + rv = vm_map_delete(&vm->vm_map, new, old); if (rv != KERN_SUCCESS) { error = ENOMEM; goto done; @@ -149,7 +147,6 @@ obreak(td, uap) } done: vm_map_unlock(&vm->vm_map); - vm_map_entry_free_freelist(&vm->vm_map, freelist); if (do_map_wirefuture) (void) vm_map_wire(&vm->vm_map, old, new, |