summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-07-26 20:54:34 +0200
committerChristoph Lameter <clameter@sgi.com>2007-07-30 21:15:15 +0200
commit2208b764c14d0f1ad63da64b1a42db6077b6fe42 (patch)
treeeb936f9fce478ffd6252e5dd2e6a88540b78a641 /mm/slub.c
parentslub: add lock debugging check (diff)
downloadlinux-2208b764c14d0f1ad63da64b1a42db6077b6fe42.tar.xz
linux-2208b764c14d0f1ad63da64b1a42db6077b6fe42.zip
slub: fix bug in slub debug support
We ClearSlabDebug() before the last SlabDebug() check. Clear it later. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Christoph Lameter <clameter@sgi.com>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 221809f1c135..6c6d74ff0694 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1131,6 +1131,7 @@ static void __free_slab(struct kmem_cache *s, struct page *page)
slab_pad_check(s, page);
for_each_object(p, s, page_address(page))
check_object(s, page, p, 0);
+ ClearSlabDebug(page);
}
mod_zone_page_state(page_zone(page),
@@ -1169,7 +1170,6 @@ static void discard_slab(struct kmem_cache *s, struct page *page)
atomic_long_dec(&n->nr_slabs);
reset_page_mapcount(page);
- ClearSlabDebug(page);
__ClearPageSlab(page);
free_slab(s, page);
}