From 9453e9c4b42441016d4cb7c9830750a5bd5d84ad Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:50:43 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * io-read.c (netfs_S_io_read): Use munmap instead of vm_deallocate. * release-protid.c (netfs_release_protid): Likewise. --- libnetfs/io-read.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libnetfs/io-read.c') diff --git a/libnetfs/io-read.c b/libnetfs/io-read.c index 7603a9d8..00452d30 100644 --- a/libnetfs/io-read.c +++ b/libnetfs/io-read.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -93,12 +93,11 @@ netfs_S_io_read (struct protid *user, mutex_unlock (&node->lock); if (err && alloced) - vm_deallocate (mach_task_self (), (vm_address_t) *data, amount); + munmap (*data, amount); if (!err && alloced && (round_page (*datalen) < round_page (amount))) - vm_deallocate (mach_task_self (), - (vm_address_t) *data + round_page (*datalen), - round_page (amount) - round_page (*datalen)); + munmap (*data + round_page (*datalen), + round_page (amount) - round_page (*datalen)); return err; } -- cgit v1.2.3