On Wed, Mar 21, 2012 at 11:27:12AM +0400, Glauber Costa wrote: > >>+int mem_cgroup_register_cftype(const struct cftype *cfts) > >>+{ > >>+ return WARN_ON(cgroup_add_cftypes(&mem_cgroup_subsys, cfts)); > >>+} > >>+EXPORT_SYMBOL(mem_cgroup_register_cftype); > > > >Why not just export mem_cgroup_subsys? > > > > I'm fine either way. I usually prefer not exporting raw data like > this, but that's 100 % taste. How do you prefer me to do it? I think exporting subsys directly is better than implementing thin wrapper like above. IMHO, wrappers like above don't add any functionality and are likely to just obfuscate what's going on. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html