DragonFly BSD
DragonFly commits List (threaded) for 2011-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Correct unaligned results in alist_free_info()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Nov 2011 23:14:21 -0800 (PST)

commit 28efdceb2527bdb3577fc7f8cc7110e17b5b9468
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]