mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Remove vm_page_frees from kmem_malloc that are performed
by vm_map_delete/vm_object_page_remove anyway.
This commit is contained in:
parent
beef8a367c
commit
b73d0eb905
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44682
@ -61,7 +61,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: vm_kern.c,v 1.51 1999/01/21 08:29:10 dillon Exp $
|
||||
* $Id: vm_kern.c,v 1.52 1999/01/21 09:38:20 dillon Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -340,12 +340,6 @@ kmem_malloc(map, size, flags)
|
||||
VM_WAIT;
|
||||
goto retry;
|
||||
}
|
||||
while (i != 0) {
|
||||
i -= PAGE_SIZE;
|
||||
m = vm_page_lookup(kmem_object,
|
||||
OFF_TO_IDX(offset + i));
|
||||
vm_page_free(m);
|
||||
}
|
||||
vm_map_delete(map, addr, addr + size);
|
||||
vm_map_unlock(map);
|
||||
if (flags & M_ASLEEP) {
|
||||
|
Loading…
Reference in New Issue
Block a user