git: kernel - Correct unaligned results in alist_free_info()

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Nov 18 23:15:49 PST 2011


commit 28efdceb2527bdb3577fc7f8cc7110e17b5b9468
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Nov 18 23:12:06 2011 -0800

    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.

Summary of changes:
 sys/kern/subr_alist.c |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/28efdceb2527bdb3577fc7f8cc7110e17b5b9468


-- 
DragonFly BSD source repository





More information about the Commits mailing list