SLUB: Do not use length parameter in slab_alloc()
commitce15fea8274acca06daa1674322d37a7d3f0036b
authorChristoph Lameter <clameter@sgi.com>
Tue, 17 Jul 2007 11:03:28 +0000 (17 04:03 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:01 +0000 (17 10:23 -0700)
treeade273da0bfdc0eadb176d847012ce1656b75c93
parent12ad6843dd145050231ec5a27fe326c2085f9095
SLUB: Do not use length parameter in slab_alloc()

We can get to the length of the object through the kmem_cache_structure.  The
additional parameter does no good and causes the compiler to generate bad
code.

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>
mm/slub.c