diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:31:15 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:31:15 +0000 |
commit | 36764cedd63af870d7baba5a397880bb933ed136 (patch) | |
tree | 18079bae689297a9f93dc045bbfa11623bf09c7f /nfs/ops.c | |
parent | 6e37ec7cf99f271884d1b7e5e6ebf61746be4847 (diff) |
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/ops.c')
-rw-r--r-- | nfs/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1658,7 +1658,7 @@ netfs_get_dirents (struct iouser *cred, struct node *np, else allocsize = round_page (bufsiz); if (allocsize > *datacnt) - vm_allocate (mach_task_self (), (vm_address_t *)data, allocsize, 1); + *data = mmap (0, allocsize, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); /* Skip ahead to the correct entry. */ bp = buf; |