Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cgroup: cls: remove unnecessary task_cls_classid

We can get classid through cgroup_subsys_state,
this is directviewing and effective.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gao feng and committed by
David S. Miller
ff0bfad6 e1af5e44

+2 -2
+2 -2
net/sched/cls_cgroup.c
··· 72 72 struct cgroup_taskset *tset) 73 73 { 74 74 struct task_struct *p; 75 - void *v; 75 + struct cgroup_cls_state *cs = css_cls_state(css); 76 + void *v = (void *)(unsigned long)cs->classid; 76 77 77 78 cgroup_taskset_for_each(p, css, tset) { 78 79 task_lock(p); 79 - v = (void *)(unsigned long)task_cls_classid(p); 80 80 iterate_fd(p->files, 0, update_classid, v); 81 81 task_unlock(p); 82 82 }