kernel - Correct unaligned results in alist_free_info()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Nov 2011 07:12:06 +0000 (23:12 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Nov 2011 07:12:06 +0000 (23:12 -0800)
commit28efdceb2527bdb3577fc7f8cc7110e17b5b9468
treecf106ca86ba61a25e66b8b47805bcd6e876c178f
parent79d182b0d3dee841326d364c0e92e46c405765e6
kernel - Correct unaligned results in alist_free_info()

* alist_free_info() needs to return a power-of-2-sized and power-of-2
  aligned result in order for the caller to be able to use the information
  to allocate the resulting space.

* Fixes an issue where the kernel is unable to return a big chunk of the
  reserved DMA space back to the kernel free pool, resulting in a lot of
  wasted memory.
sys/kern/subr_alist.c