slub: fixed uninitialized counter in struct kmem_cache_node
authorSalman Qazi <sqazi@google.com>
Thu, 11 Sep 2008 19:25:41 +0000 (12:25 -0700)
committerPekka Enberg <penberg@cs.helsinki.fi>
Mon, 15 Sep 2008 06:49:05 +0000 (09:49 +0300)
commit02b71b70129aaaa38f280af2aa5a767a4dec9107
treea964cdde0a75171fe82bf700cd07375f035169bb
parentbc45eb8950b8c14487385cfd2bda1613ca8d9703
slub: fixed uninitialized counter in struct kmem_cache_node

Initialized total objects atomic for the node in init_kmem_cache_node.  The
uninitialized value was ruining the stats in /proc/slabinfo.

Acked-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Salman Qazi <sqazi@google.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c