summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-12-28 23:07:49 +0000
committerdyson <dyson@FreeBSD.org>1996-12-28 23:07:49 +0000
commitfb5d9384f8c0ba53c25f65028118cf5856560640 (patch)
treefec6bbd70192e53debad5bf6ffd00e181da4684f /sys/vm/vm_kern.c
parent527a08777f4a2f02d65ccc013b7ca9c0b496c57d (diff)
downloadFreeBSD-src-fb5d9384f8c0ba53c25f65028118cf5856560640.zip
FreeBSD-src-fb5d9384f8c0ba53c25f65028118cf5856560640.tar.gz
Eliminate the redundancy due to the similarity between the routines
vm_map_simplify and vm_map_simplify_entry. Make vm_map_simplify_entry handle wired maps so that we can get rid of vm_map_simplify. Modify the callers of vm_map_simplify to properly use vm_map_simplify_entry. Submitted by: Alan Cox <alc@cs.rice.edu>
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 1c564be..4dc5d27 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.27 1996/07/02 02:08:02 dyson Exp $
+ * $Id: vm_kern.c,v 1.28 1996/11/17 02:38:29 dyson Exp $
*/
/*
@@ -201,11 +201,6 @@ kmem_alloc(map, size)
(void) vm_map_pageable(map, (vm_offset_t) addr, addr + size, FALSE);
- /*
- * Try to coalesce the map
- */
- vm_map_simplify(map, addr);
-
return (addr);
}
@@ -370,6 +365,8 @@ retry:
panic("kmem_malloc: entry not found or misaligned");
entry->wired_count++;
+ vm_map_simplify_entry(map, entry);
+
/*
* Loop thru pages, entering them in the pmap. (We cannot add them to
* the wired count without wrapping the vm_page_queue_lock in
@@ -385,7 +382,6 @@ retry:
}
vm_map_unlock(map);
- vm_map_simplify(map, addr);
return (addr);
}
OpenPOWER on IntegriCloud