1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Don't bother calling pmap_create() when creating the temporary map.

The whole COW section of vm_mmap() should be rewritten; the current
implementation is highly convoluted.
This commit is contained in:
David Greenman 1995-02-15 09:22:17 +00:00
parent a043a8428a
commit ca40da7417
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6435

View File

@ -38,7 +38,7 @@
* from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$ * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$
* *
* @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94
* $Id: vm_mmap.c,v 1.7 1994/10/09 01:52:11 phk Exp $ * $Id: vm_mmap.c,v 1.8 1995/01/09 16:05:48 davidg Exp $
*/ */
/* /*
@ -746,7 +746,7 @@ vm_mmap(map, addr, size, prot, maxprot, flags, handle, foff)
vm_object_deallocate(object); vm_object_deallocate(object);
goto out; goto out;
} }
tmap = vm_map_create(pmap_create(size), VM_MIN_ADDRESS, tmap = vm_map_create(NULL, VM_MIN_ADDRESS,
VM_MIN_ADDRESS + size, TRUE); VM_MIN_ADDRESS + size, TRUE);
off = VM_MIN_ADDRESS; off = VM_MIN_ADDRESS;
rv = vm_allocate_with_pager(tmap, &off, size, rv = vm_allocate_with_pager(tmap, &off, size,