From ad1de958061fb1ed2721d4becb65c0819ea862a9 Mon Sep 17 00:00:00 2001 From: dg Date: Mon, 20 Feb 1995 17:36:36 +0000 Subject: Stop using vm_allocate and vm_deallocate. --- sys/vm/vm_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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); } -- cgit v1.1