Commit 2208b764 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Christoph Lameter

slub: fix bug in slub debug support

We ClearSlabDebug() before the last SlabDebug() check. Clear it later.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
parent 02febdf7
...@@ -1131,6 +1131,7 @@ static void __free_slab(struct kmem_cache *s, struct page *page) ...@@ -1131,6 +1131,7 @@ static void __free_slab(struct kmem_cache *s, struct page *page)
slab_pad_check(s, page); slab_pad_check(s, page);
for_each_object(p, s, page_address(page)) for_each_object(p, s, page_address(page))
check_object(s, page, p, 0); check_object(s, page, p, 0);
ClearSlabDebug(page);
} }
mod_zone_page_state(page_zone(page), mod_zone_page_state(page_zone(page),
...@@ -1169,7 +1170,6 @@ static void discard_slab(struct kmem_cache *s, struct page *page) ...@@ -1169,7 +1170,6 @@ static void discard_slab(struct kmem_cache *s, struct page *page)
atomic_long_dec(&n->nr_slabs); atomic_long_dec(&n->nr_slabs);
reset_page_mapcount(page); reset_page_mapcount(page);
ClearSlabDebug(page);
__ClearPageSlab(page); __ClearPageSlab(page);
free_slab(s, page); free_slab(s, page);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment