On Thu, 21 Aug 2014, Joonsoo Kim wrote: > We don't need to keep kmem_cache definition in include/linux/slab.h > if we don't need to inline kmem_cache_size(). According to my > code inspection, this function is only called at lc_create() in > lib/lru_cache.c which may be called at initialization phase of something, > so we don't need to inline it. Therfore, move it to slab_common.c and > move kmem_cache definition to internal header. > > After this change, we can change kmem_cache definition easily without > full kernel build. For instance, we can turn on/off CONFIG_SLUB_STATS > without full kernel build. Wow. I did not realize that we were already at that point. Acked-by: Christoph Lameter <cl@xxxxxxxxx> -- 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>