On Mon, 26 Dec 2016, Grygorii Maistrenko wrote: > In case CONFIG_SLUB_DEBUG_ON=n, find_mergeable() gets debug features > from commandline but never checks if there are features from the > SLAB_NEVER_MERGE set. > As a result selected by slub_debug caches are always mergeable if they > have been created without a custom constructor set or without one of the > SLAB_* debug features on. > > This moves the SLAB_NEVER_MERGE check below the flags update from > commandline to make sure it won't merge the slab cache if one of the > debug features is on. > > Signed-off-by: Grygorii Maistrenko <grygoriimkd@xxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>