Re: [PATCH] SLUB: Fix memory hotplug with !NUMA

From: Christoph Lameter
Date: Wed Oct 06 2010 - 12:02:47 EST


On Wed, 6 Oct 2010, Pekka Enberg wrote:

> This patch fixes the following build breakage when memory hotplug is enabled on
> UMA configurations:

Hum? That works?

> diff --git a/mm/slub.c b/mm/slub.c
> index fe536d3..8fd5401 100644
> --- a/mm/slub.c
> +++ b/mm/slub.c
> @@ -2851,7 +2851,7 @@ int kmem_cache_shrink(struct kmem_cache *s)
> }
> EXPORT_SYMBOL(kmem_cache_shrink);
>
> -#if defined(CONFIG_NUMA) && defined(CONFIG_MEMORY_HOTPLUG)
> +#if defined(CONFIG_MEMORY_HOTPLUG)
> static int slab_mem_going_offline_callback(void *arg)
> {
> struct kmem_cache *s;
>

Acked-by: Christoph Lameter <cl@xxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/