diff options
author | dg <dg@FreeBSD.org> | 1995-02-20 17:36:36 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-02-20 17:36:36 +0000 |
commit | ad1de958061fb1ed2721d4becb65c0819ea862a9 (patch) | |
tree | 92f61ee2f9369c11216cb21be32f74561fe4eb9e /sys | |
parent | 7017e898bd41cf46ee14044f267b20f3df23c717 (diff) | |
download | FreeBSD-src-ad1de958061fb1ed2721d4becb65c0819ea862a9.zip FreeBSD-src-ad1de958061fb1ed2721d4becb65c0819ea862a9.tar.gz |
Stop using vm_allocate and vm_deallocate.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index 92cd3a4..51f5061 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -38,7 +38,7 @@ * from: Utah $Hdr: vm_unix.c 1.1 89/11/07$ * * @(#)vm_unix.c 8.1 (Berkeley) 6/11/93 - * $Id: vm_unix.c,v 1.3 1994/08/02 07:55:41 davidg Exp $ + * $Id: vm_unix.c,v 1.4 1995/01/09 16:05:59 davidg Exp $ */ /* @@ -79,14 +79,14 @@ obreak(p, uap, retval) if (swap_pager_full) { return (ENOMEM); } - rv = vm_allocate(&vm->vm_map, &old, diff, FALSE); + rv = vm_map_find(&vm->vm_map, NULL, 0, &old, diff, FALSE); if (rv != KERN_SUCCESS) { return (ENOMEM); } vm->vm_dsize += btoc(diff); } else if (diff < 0) { diff = -diff; - rv = vm_deallocate(&vm->vm_map, new, diff); + rv = vm_map_remove(&vm->vm_map, new, new + diff); if (rv != KERN_SUCCESS) { return (ENOMEM); } |