Fix a fairly subtle bug in mbuf_init() where the reference counter

contiguous space was being allocated from the clust_map
instead of the mbuf_map as the comments indicated.  This resulted in
some address space wastage in mbuf_map.

Submitted by: Rohit Jalan <rohjal@yahoo.co.in>
This commit is contained in:
Bosko Milekic 2002-10-16 19:59:08 +00:00
parent 9426aedf7f
commit a91db09ec0

View File

@ -418,7 +418,7 @@ mbuf_init(void *dummy)
* Allocate all the required counters for clusters. This makes
* cluster allocations/deallocations much faster.
*/
cl_refcntmap = (u_int *)kmem_malloc(mb_list_clust.ml_map,
cl_refcntmap = (u_int *)kmem_malloc(mb_list_mbuf.ml_map,
roundup(nmbclusters * sizeof(u_int), MSIZE), M_NOWAIT);
if (cl_refcntmap == NULL)
goto bad;