]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
slub statistics: Fix check for DEACTIVATE_REMOTE_FREES
authorChristoph Lameter <clameter@sgi.com>
Tue, 4 Mar 2008 19:10:17 +0000 (11:10 -0800)
committerChristoph Lameter <clameter@sgi.com>
Fri, 7 Mar 2008 00:21:49 +0000 (16:21 -0800)
The remote frees are in the freelist of the page and not in the
percpu freelist.

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

index 0863fd38a5ce06a87392f5ba753606a516a5d262..a96e11c77fd9595deec57b445888fde3b9bf4671 100644 (file)
--- 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