summaryrefslogtreecommitdiff
path: root/isofs/pager.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-11 05:28:28 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-11 05:28:28 +0000
commit6ae05c477f2d8931fc365f6f009817e6c26087fd (patch)
treeea4e8aa6f9cca708d8b8cf1d9130f53e5d09d2c9 /isofs/pager.c
parentc34fe8e00d5b049550f462155238d6e31e08b234 (diff)
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* lookup.c (diskfs_get_directs): Use mmap instead of vm_allocate. * pager.c (pager_read_page): Likewise.
Diffstat (limited to 'isofs/pager.c')
-rw-r--r--isofs/pager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/isofs/pager.c b/isofs/pager.c
index 3ebcc7e8..7e12ebc0 100644
--- a/isofs/pager.c
+++ b/isofs/pager.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999 Free Software Foundation, Inc.
Written by Thomas Bushnell, n/BSG.
This file is part of the GNU Hurd.
@@ -52,7 +52,8 @@ pager_read_page (struct user_pager_info *upi,
if (page >= np->dn_stat.st_size)
{
- vm_allocate (mach_task_self (), buf, vm_page_size, 1);
+ *buf = (vm_address_t) mmap (0, vm_page_size, PROT_READ|PROT_WRITE,
+ MAP_ANON, 0, 0);
return 0;
}