From: Christoph Lameter Date: Tue, 4 Mar 2008 19:10:17 +0000 (-0800) Subject: slub statistics: Fix check for DEACTIVATE_REMOTE_FREES X-Git-Tag: v2.6.25-rc5~9^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b773ad73690b5f34eee0c76f4273ac6fcbd88f82;p=linux-2.6 slub statistics: Fix check for DEACTIVATE_REMOTE_FREES The remote frees are in the freelist of the page and not in the percpu freelist. Reviewed-by: Pekka Enberg Signed-off-by: Christoph Lameter --- diff --git a/mm/slub.c b/mm/slub.c index 0863fd38a5..a96e11c77f 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1368,7 +1368,7 @@ static void deactivate_slab(struct kmem_cache *s, struct kmem_cache_cpu *c) struct page *page = c->page; int tail = 1; - if (c->freelist) + if (page->freelist) stat(c, DEACTIVATE_REMOTE_FREES); /* * Merge cpu freelist into slab freelist. Typically we get here