From 5798491126bcb231c4fbd5a9675bae036146ad01 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:55:56 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * mux.c (get_dirents): Use munmap instead of vm_deallocate. (netfs_get_dirents): Likewise. --- usermux/mux.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'usermux/mux.c') diff --git a/usermux/mux.c b/usermux/mux.c index 54468ba7..0f955544 100644 --- a/usermux/mux.c +++ b/usermux/mux.c @@ -1,6 +1,6 @@ /* Root usermux node - Copyright (C) 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. Written by Miles Bader This file is part of the GNU Hurd. @@ -147,14 +147,13 @@ get_dirents (struct node *dir, } if (err) - vm_deallocate (mach_task_self (), (vm_address_t)*data, size); + munmap (*data, size); else { vm_address_t alloc_end = (vm_address_t)(*data + size); vm_address_t real_end = round_page (p); if (alloc_end > real_end) - vm_deallocate (mach_task_self (), - real_end, alloc_end - real_end); + munmap ((caddr_t) real_end, alloc_end - real_end); *data_len = p - *data; *data_entries = count; } @@ -192,8 +191,7 @@ netfs_get_dirents (struct iouser *cred, struct node *dir, if (cached_data_len > 0) /* Free the old cache. */ { - vm_deallocate (mach_task_self (), - (vm_address_t)cached_data, cached_data_len); + munmap (cached_data, cached_data_len); cached_data = 0; cached_data_len = 0; } -- cgit v1.2.3