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:
parent
899eeaa62f
commit
e0b47a134b
@ -157,13 +157,8 @@ again:
|
||||
* 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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user