summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-03-04 20:10:17 +0100
committerChristoph Lameter <clameter@sgi.com>2008-03-07 01:21:49 +0100
commitb773ad73690b5f34eee0c76f4273ac6fcbd88f82 (patch)
tree76487ed8339cde643e05a02b881ddec01a2fb7d6 /mm/slub.c
parentMerge branch 'for-linus' of git://git.infradead.org/~dedekind/ubi-2.6 (diff)
downloadlinux-b773ad73690b5f34eee0c76f4273ac6fcbd88f82.tar.xz
linux-b773ad73690b5f34eee0c76f4273ac6fcbd88f82.zip
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 <penberg@cs.helsinki.fi> 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 0863fd38a5ce..a96e11c77fd9 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