aboutsummaryrefslogtreecommitdiff
path: root/nfs/pager.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-11 05:31:15 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-11 05:31:15 +0000
commit36764cedd63af870d7baba5a397880bb933ed136 (patch)
tree18079bae689297a9f93dc045bbfa11623bf09c7f /nfs/pager.c
parent6e37ec7cf99f271884d1b7e5e6ebf61746be4847 (diff)
downloadhurd-36764cedd63af870d7baba5a397880bb933ed136.tar.gz
hurd-36764cedd63af870d7baba5a397880bb933ed136.tar.bz2
hurd-36764cedd63af870d7baba5a397880bb933ed136.zip
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* ops.c (netfs_get_dirents): Use mmap instead of vm_allocate. * pager.c (pager_read_page): Likewise.
Diffstat (limited to 'nfs/pager.c')
-rw-r--r--nfs/pager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfs/pager.c b/nfs/pager.c
index 7a333252..92df7955 100644
--- a/nfs/pager.c
+++ b/nfs/pager.c
@@ -118,7 +118,8 @@ pager_read_page (struct user_pager_info *pager,
mutex_lock (&np->lock);
- 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);
data = (char *) *buf;
amt = vm_page_size;
offset = page;