kernel - Remove unused z_Next field, fix comments & debug helper
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2015 18:10:45 +0000 (11:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2015 18:10:45 +0000 (11:10 -0700)
commitc06ca5ee0ed9bb07b94e8a18a9d64937462661f3
tree99b64d67fc9b6e54be523ea395fddc8821d8514d
parentf213edca4cb42238d933b13a7b9db4fdfdb01bc3
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@drze.net>
sys/kern/kern_slaballoc.c
sys/sys/slaballoc.h
test/debug/zallocinfo.c