slab: Remove obj_size from struct kmem_slab
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 7 Nov 2016 00:38:05 +0000 (19:38 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commita52005c71d3a448ff260017b364aa542ae55c944
tree8fb90be398545780440f25eb2d2390a6c3344dbd
parent9871244718039009d86c98cff000ed54e83a9237
slab: Remove obj_size from struct kmem_slab

We actually can just look at the cache itself, which tracks the object
size already.  That object size technically was the unaligned object
size, but that is mostly useless.  If we want the requested, but not
actual, object size for diagnostics, we can add tracking for it.

Note that the size is passed to the ctor/dtor.  That'll go away soon
too; I don't recall if it was something we added, or if it was in the
original slab paper, but it's mostly useless.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/slab.h
kern/src/slab.c