From: Aaro Koskinen Date: Fri, 28 Aug 2009 11:28:54 +0000 (+0300) Subject: SLUB: fix ARCH_KMALLOC_MINALIGN cases 64 and 256 X-Git-Tag: v2.6.32-rc1~695^2^3~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acdfcd04d9df7d084ff752f82afad6ed4ad5f363;p=pandora-kernel.git SLUB: fix ARCH_KMALLOC_MINALIGN cases 64 and 256 If the minalign is 64 bytes, then the 96 byte cache should not be created because it would conflict with the 128 byte cache. If the minalign is 256 bytes, patching the size_index table should not result in a buffer overrun. The calculation "(i - 1) / 8" used to access size_index[] is moved to a separate function as suggested by Christoph Lameter. Acked-by: Christoph Lameter Signed-off-by: Aaro Koskinen Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed