summaryrefslogtreecommitdiff
path: root/libnetfs/io-read.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-11 05:30:09 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-11 05:30:09 +0000
commit511d0368972e61018b20e1debbefea04264fcd08 (patch)
treeccafc118b30fd95d85281ecab8c92021e9353474 /libnetfs/io-read.c
parentad014b1412367ef9c9038b3b52fa83f6c748e520 (diff)
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* file-get-storage-info.c (netfs_S_file_get_storage_info): Use mmap instead of vm_allocate. * file-get-translator.c (netfs_S_file_get_translator): Likewise. * io-read.c (netfs_S_io_read): Likewise.
Diffstat (limited to 'libnetfs/io-read.c')
-rw-r--r--libnetfs/io-read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetfs/io-read.c b/libnetfs/io-read.c
index 4c97c297..a4b1b2e2 100644
--- a/libnetfs/io-read.c
+++ b/libnetfs/io-read.c
@@ -50,7 +50,7 @@ netfs_S_io_read (struct protid *user,
if (amount > *datalen)
{
alloced = 1;
- vm_allocate (mach_task_self (), (vm_address_t *) data, amount, 1);
+ *data = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0);
}
*datalen = amount;