slub: add missed accounting
authorShaohua Li <shaohua.li@intel.com>
Fri, 11 Nov 2011 06:54:14 +0000 (14:54 +0800)
committerPekka Enberg <penberg@kernel.org>
Sun, 27 Nov 2011 20:08:15 +0000 (22:08 +0200)
commit4c493a5a5c0bab6c434af2723328edd79c49aa0c
tree184c48e7c1759127de931d903bdbbdcc786acac6
parent42616cacf8bf898b1bc734b88a76cbaadffb8eb7
slub: add missed accounting

With per-cpu partial list, slab is added to partial list first and then moved
to node list. The __slab_free() code path for add/remove_partial is almost
deprecated(except for slub debug). But we forget to account add/remove_partial
when move per-cpu partial pages to node list, so the statistics for such events
are always 0. Add corresponding accounting.

This is against the patch "slub: use correct parameter to add a page to
partial list tail"

Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c