On Wed, 17 Jan 2018, Matthew Wilcox wrote: > We could put a char * in the kmem_cache which (if not NULL) overrides > the attr->name? Probably want a helper to replace the endearingly short > 's->name'. Something like: > > #define slab_name(s) s->name ?: s->attr->name Well I was planning on replacing references to const objects in kmem_cache_attr throughout the allocators with s->a->xx where a is the pointer to the attributes in struct kmem_cache. That is also a security feature if the kmem_cache_attr structures can be placed in readonly segmenets. -- 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>