From a439e9fc84397a7a802b2e9966df6d2bf7a63e73 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 05:28:45 +0000 Subject: 1999-07-09 Thomas Bushnell, BSG * boot-start.c (diskfs_S_exec_startup_get_info): Use mmap instead of vm_allocate. (diskfs_S_fsys_init): Likewise. * file-get-trans.c (diskfs_S_file_get_translator): Likewise. * file-getfh.c (diskfs_S_file_getfh): Likewise. * io-read.c (diskfs_S_io_read): Likewise. --- libdiskfs/file-getfh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdiskfs/file-getfh.c') diff --git a/libdiskfs/file-getfh.c b/libdiskfs/file-getfh.c index 1b23b80c..c755e911 100644 --- a/libdiskfs/file-getfh.c +++ b/libdiskfs/file-getfh.c @@ -1,6 +1,6 @@ /* Return a file handle (for nfs server support) - Copyright (C) 1997 Free Software Foundation + Copyright (C) 1997, 1999 Free Software Foundation This file is part of the GNU Hurd. @@ -42,8 +42,8 @@ diskfs_S_file_getfh (struct protid *cred, char **fh, unsigned *fh_len) mutex_lock (&node->lock); if (*fh_len < sizeof (struct diskfs_fhandle)) - vm_allocate (mach_task_self (), (vm_address_t *) fh, - sizeof (struct diskfs_fhandle), 1); + *fh = mmap (0, sizeof (struct diskfs_fhandle), PROT_READ|PROT_WRITE, + MAP_ANON, 0, 0); *fh_len = sizeof (struct diskfs_fhandle); f = (struct diskfs_fhandle *)*fh; -- cgit v1.2.3