]> git.baikalelectronics.ru Git - kernel.git/commit
slob: improved alignment handling
authorNick Piggin <npiggin@suse.de>
Mon, 16 Jul 2007 06:38:09 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:35 +0000 (09:05 -0700)
commit293a753aaf81629b0074f8da744fdff418c29909
treefcb6adcb743533c7d6818bbd13511062f6fda737
parente275228999acccc7a11c559c51be968cd6198356
slob: improved alignment handling

Remove the core slob allocator's minimum alignment restrictions, and instead
introduce the alignment restrictions at the slab API layer.  This lets us heed
the ARCH_KMALLOC/SLAB_MINALIGN directives, and also use __alignof__ (unsigned
long) for the default alignment (which should allow relaxed alignment
architectures to take better advantage of SLOB's small minimum alignment).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slob.c