Re: [PATCH 2/3] mm/slab_common: commonize slab merge logic

From: Joonsoo Kim
Date: Mon Aug 25 2014 - 22:23:50 EST


On Mon, Aug 25, 2014 at 10:27:58AM -0500, Christoph Lameter wrote:
> On Thu, 21 Aug 2014, Joonsoo Kim wrote:
>
> > +static int __init setup_slab_nomerge(char *str)
> > +{
> > + slab_nomerge = 1;
> > + return 1;
> > +}
> > +__setup("slub_nomerge", setup_slab_nomerge);
>
> Uhh.. You would have to specify "slub_nomerge" to get slab to not merge
> slab caches?

Should fix it. How about following change?

#ifdef CONFIG_SLUB
__setup("slub_nomerge", setup_slab_nomerge);
#endif

__setup("slab_nomerge", setup_slab_nomerge);

This makes "slab_nomerge" works for all SL[aou]B.

Thanks.
--
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/