slab: avoid double initialization & do initialization in 1 place
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 10 Feb 2008 10:21:54 +0000 (11:21 +0100)
committerChristoph Lameter <christoph@stapp.engr.sgi.com>
Thu, 14 Feb 2008 23:30:01 +0000 (15:30 -0800)
commite51bfd0ad10600a9fe4c8ede5ac2272e80075008
treea204156fbb0036fb76e89ceffa15a30e90bc3f75
parente760e716d47b48caf98da348368fd41b4a9b9e7e
slab: avoid double initialization & do initialization in 1 place

- alloc_slabmgmt: initialize all slab fields in 1 place
- slab->nodeid was initialized twice: in alloc_slabmgmt
  and immediately after it in cache_grow

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
CC: Christoph Lameter <clameter@sgi.com>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
mm/slab.c