slab, slub, slob: Unify alignment definition
authorChristoph Lameter <cl@linux.com>
Tue, 14 Jun 2011 21:16:36 +0000 (16:16 -0500)
committerPekka Enberg <penberg@kernel.org>
Thu, 16 Jun 2011 16:40:20 +0000 (19:40 +0300)
Every slab has its on alignment definition in include/linux/sl?b_def.h. Extract those
and define a common set in include/linux/slab.h.

SLOB: As notes sometimes we need double word alignment on 32 bit. This gives all
structures allocated by SLOB a unsigned long long alignment like the others do.

SLAB: If ARCH_SLAB_MINALIGN is not set SLAB would set ARCH_SLAB_MINALIGN to
zero meaning no alignment at all. Give it the default unsigned long long alignment.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>

No differences found