Messages in this thread Patch in this message | | | Date | Tue, 15 Dec 2009 08:50:39 -0600 (CST) | From | Christoph Lameter <> | Subject | Re: [this_cpu_xx V7 0/8] Per cpu atomics in core allocators and cleanup |
| |
Small fixup patch to the slub patches:
Subject: Update remaining reference to get_cpu_slab
If CONFIG_SLUB_STATS is set then some additional code is being compiled that was not updated since it was a recent addition to slub.
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
--- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2009-12-15 08:47:44.000000000 -0600 +++ linux-2.6/mm/slub.c 2009-12-15 08:48:03.000000000 -0600 @@ -4221,7 +4221,7 @@ static void clear_stat(struct kmem_cache int cpu;
for_each_online_cpu(cpu) - get_cpu_slab(s, cpu)->stat[si] = 0; + per_cpu_ptr(s->cpu_slab, cpu)->stat[si] = 0; }
#define STAT_ATTR(si, text) \
| |