From: Christoph Lameter Date: Tue, 4 Mar 2008 19:10:17 +0000 (-0800) Subject: slub statistics: Fix check for DEACTIVATE_REMOTE_FREES X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b773ad73690b5f34eee0c76f4273ac6fcbd88f82;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 0863fd38a5c..a96e11c77fd 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