summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-03-12 08:05:49 +0000
committeralc <alc@FreeBSD.org>1999-03-12 08:05:49 +0000
commit2d75a5cc4ca02ab43213694f8f75d80f0d07529a (patch)
treebac819af13bf6d05789a83c5299c754a30ae5ae7 /sys/vm
parent35ed86543837074d1d29e42be3c5833e7d86259a (diff)
downloadFreeBSD-src-2d75a5cc4ca02ab43213694f8f75d80f0d07529a.zip
FreeBSD-src-2d75a5cc4ca02ab43213694f8f75d80f0d07529a.tar.gz
Remove vm_page_frees from kmem_malloc that are performed
by vm_map_delete/vm_object_page_remove anyway.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_kern.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 6f3b412..d4feb44 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -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 @@ retry:
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) {
OpenPOWER on IntegriCloud