diff options
author | Tejun Heo <tj@kernel.org> | 2012-11-22 15:32:47 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-11-22 15:32:47 (GMT) |
commit | 88d642fa2ce87c125b84cfcf23c371618d8b08b4 (patch) | |
tree | 3b55a847312a4286c77619090513096d973240eb /kernel/freezer.c | |
parent | 4a6ee25c7ea24decdf17af6fa2f2ab00acc7e4bf (diff) | |
download | linux-88d642fa2ce87c125b84cfcf23c371618d8b08b4.tar.xz |
netprio_cgroup: use cgroup->id instead of cgroup_netprio_state->prioidx
With priomap expansion no longer depending on knowing max id
allocated, netprio_cgroup can use cgroup->id insted of cs->prioidx.
Drop prioidx alloc/free logic and convert all uses to cgroup->id.
* In cgrp_css_alloc(), parent->id test is moved above @cs allocation
to simplify error path.
* In cgrp_css_free(), @cs assignment is made initialization.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-and-Acked-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/freezer.c')
0 files changed, 0 insertions, 0 deletions