cgroup: always use cgroup_css()
authorTejun Heo <tj@kernel.org>
Tue, 13 Aug 2013 15:01:53 +0000 (11:01 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 13 Aug 2013 15:01:53 +0000 (11:01 -0400)
commit40e93b39cd5b6a347333a95152ce37deef37bbd0
tree6789f2b7310d828496358ccdac93b68d2abda415
parentbd8815a6d802fc16a7a106e170593aa05dc17e72
cgroup: always use cgroup_css()

cgroup_css() is the accessor for cgroup->subsys[] but is not used
consistently.  cgroup->subsys[] will become RCU protected and
cgroup_css() will grow synchronization sanity checks.  In preparation,
make all cgroup->subsys[] dereferences use cgroup_css() consistently.

This patch doesn't introduce any functional difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c