]> git.baikalelectronics.ru Git - kernel.git/commit
slub: When allocating a new slab also prep the first object
authorChristoph Lameter <cl@linux.com>
Fri, 22 Jul 2011 14:35:14 +0000 (09:35 -0500)
committerPekka Enberg <penberg@kernel.org>
Mon, 25 Jul 2011 17:58:19 +0000 (20:58 +0300)
commit87623413778f8dbca8446ebc9bae40acb1454a2b
tree068d8d50963b53a8ce25470328ff6ebe5a51b198
parentdde8c3e3fc9e92934e076eb7e5353bc626141eac
slub: When allocating a new slab also prep the first object

We need to branch to the debug code for the first object if we allocate
a new slab otherwise the first object will be marked wrongly as inactive.

Tested-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c