Deleted Added
full compact
52c52
< __FBSDID("$FreeBSD: head/sys/vm/vm_radix.c 249502 2013-04-15 06:12:00Z alc $");
---
> __FBSDID("$FreeBSD: head/sys/vm/vm_radix.c 249605 2013-04-18 05:34:33Z alc $");
362a363
> int nodes;
364c365,371
< if (!uma_zone_reserve_kva(vm_radix_node_zone, cnt.v_page_count))
---
> /*
> * Calculate the number of reserved nodes, discounting the pages that
> * are needed to store them.
> */
> nodes = ((vm_paddr_t)cnt.v_page_count * PAGE_SIZE) / (PAGE_SIZE +
> sizeof(struct vm_radix_node));
> if (!uma_zone_reserve_kva(vm_radix_node_zone, nodes))
366c373
< uma_prealloc(vm_radix_node_zone, cnt.v_page_count);
---
> uma_prealloc(vm_radix_node_zone, nodes);