diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:50:43 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:50:43 +0000 |
commit | 9453e9c4b42441016d4cb7c9830750a5bd5d84ad (patch) | |
tree | 30db54ed191d88df09b121a26de86c937eaa7bf7 /libnetfs/io-read.c | |
parent | 0573b5a9f199716eba80f5bad9d50b4e109cfbe6 (diff) |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* io-read.c (netfs_S_io_read): Use munmap instead of
vm_deallocate.
* release-protid.c (netfs_release_protid): Likewise.
Diffstat (limited to 'libnetfs/io-read.c')
-rw-r--r-- | libnetfs/io-read.c | 9 |
1 files changed, 4 insertions, 5 deletions
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; } |