]> git.baikalelectronics.ru Git - kernel.git/commit
slab allocators: MAX_ORDER one off fix
authorChristoph Lameter <clameter@sgi.com>
Sun, 24 Jun 2007 00:16:43 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Jun 2007 15:59:12 +0000 (08:59 -0700)
commitb7e1f1645aa4427ec35e953ea83557da03a6dafe
tree76b257ca8ea66e596ffb0744fdb51f98dd044bed
parent6a4265d5f2dbb00bbbf848de36c73467a4ec8b73
slab allocators: MAX_ORDER one off fix

MAX_ORDER is the first order that is not possible.

Use MAX_ORDER - 1 to calculate the larges possible object size in slab.h

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/slab.h