On Tue, Apr 22, 2014 at 02:30:27PM +0800, Jianyu Zhan wrote: > This is a prepared patch for converting from per-cgroup id to > per-subsystem id. > > Some subsystems dereference the per-cgrpu id directly, but this is > implementation-specific, so it should be transparent for subsystems. Hmm... why would cgroup ID be implementation-specific? It's a published field > Use this accessor instead. I'm not a big believer of trivial accessors. They tend to obfuscate things more than helping anything. Here, we need to switch from cgrp->id to css->id. Wrapping cgrp->id by css_to_id() doesn't really help anything especially because there will be cases where we'd actually want cgroup IDs instead of css IDs too. Thanks. -- tejun _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/containers