git: kernel - Remove unused z_Next field, fix comments & debug helper

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 10 11:18:04 PDT 2015


commit c06ca5ee0ed9bb07b94e8a18a9d64937462661f3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Aug 10 11:10:45 2015 -0700

    kernel - Remove unused z_Next field, fix comments & debug helper
    
    * The kernel slab allocator no longer uses the z_Next field, remove it.
    
    * Remove a useless z_Next test in two places and adjust the comments to
      describe the actual operation of the zone free case.  It doesn't hurt for
      us to leave one fully free zone structure on the main per-cpu ZoneAry[]
      for each zone, there might even be a cache-locality-of-reference advantage.
    
    * Fix the 'zoneinfo' code in test/debug so it properly reports the
      kernel slab allocators topology.
    
    Reported-by: Adrian Drzewiecki <z at drze.net>

Summary of changes:
 sys/kern/kern_slaballoc.c |  23 ++++++----
 sys/sys/slaballoc.h       |   2 +-
 test/debug/zallocinfo.c   | 108 ++++++++++++++++++++++++++++------------------
 3 files changed, 82 insertions(+), 51 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c06ca5ee0ed9bb07b94e8a18a9d64937462661f3


-- 
DragonFly BSD source repository



More information about the Commits mailing list