]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04e89ab92809a21fea5097784d97c82fba06abb1
treef907471f606a17cef0c1af4bc2187cdd4ee26c64
parent8a2b07083b2aa789f08cd9fcac3484c4d36e1e32
slab, slub, slob: Unify alignment definition

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>
include/linux/slab.h
include/linux/slab_def.h
include/linux/slob_def.h
include/linux/slub_def.h