slub: Move map/flag clearing to __free_slab
commit49bd5221ce8fb55d12c04a3ffd375201c5bbfb7a
authorChristoph Lameter <clameter@sgi.com>
Mon, 14 Apr 2008 15:52:18 +0000 (14 18:52 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Mon, 14 Apr 2008 15:52:18 +0000 (14 18:52 +0300)
tree8569f6898326ae3ccbd24309dc0dd53707b11220
parent50ef37b96c11e76625067ae413dc54585ea22585
slub: Move map/flag clearing to __free_slab

__free_slab does some diagnostics. The resetting of mapcount etc
in discard_slab() can interfere with debug processing. So move
the reset immediately before the page is freed.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c