cls_cgroup: clean up for cgroup part
commit8e8ba85417366afd2361e315c6ba5949d3eff56f
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 30 Dec 2008 03:39:03 +0000 (29 19:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Dec 2008 03:40:45 +0000 (29 19:40 -0800)
treef093eb8aedd4ca4a888ae9f867cb1b1277a12073
parent2f068bf8711c35b98bf9a0172555b8390a762fc0
cls_cgroup: clean up for cgroup part

- It's better to use container_of() instead of casting cgroup_subsys_state *
  to cgroup_cls_state *.
- Add helper function task_cls_state().
- Rename net_cls_state() to cgrp_cls_state().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_cgroup.c