summaryrefslogtreecommitdiff
path: root/nfs/pager.c
diff options
context:
space:
mode:
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;