Remove dead code. A vm_map's first_free is never NULL (even if the map is

full).

(This is preparation for an O(log n) implementation of vm_map_findspace().)

Submitted by:	Mark W. Krentel
This commit is contained in:
Alan Cox 2004-08-07 05:58:31 +00:00
parent 899eeaa62f
commit e0b47a134b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133253

View File

@ -157,13 +157,8 @@ vm_ksubmap_init(struct kva_md_info *kmi)
* Discount the physical memory larger than the size of kernel_map
* to avoid eating up all of KVA space.
*/
if (kernel_map->first_free == NULL) {
printf("Warning: no free entries in kernel_map.\n");
physmem_est = physmem;
} else {
physmem_est = lmin(physmem, btoc(kernel_map->max_offset -
kernel_map->min_offset));
}
physmem_est = lmin(physmem, btoc(kernel_map->max_offset -
kernel_map->min_offset));
v = kern_vfs_bio_buffer_alloc(v, physmem_est);