On Fri, 18 May 2012, Pekka Enberg wrote: > Why not make a "struct kmem_cache_common" structure and use that? You can > embed it in "struct kmem_cache" just fine. Tried that but I ended up with having to qualify all common variables. I.e. struct kmem_cache { struct kmem_cache_common { int a,b } common } kmem_cache; requires kmemcache->common.a instead of kmemcache->a That in turn requires significant changes to all allocators. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>