summaryrefslogtreecommitdiff
path: root/kernel/uid16.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-11-22 15:32:46 (GMT)
committerTejun Heo <tj@kernel.org>2012-11-22 15:32:46 (GMT)
commit4a6ee25c7ea24decdf17af6fa2f2ab00acc7e4bf (patch)
treecbb106de43c38c9a44c17d1d9f48671dd334bbbc /kernel/uid16.c
parent52bca930c913c85ed1157ebc8f9dd9bc38a8c2c3 (diff)
downloadlinux-4a6ee25c7ea24decdf17af6fa2f2ab00acc7e4bf.tar.xz
netprio_cgroup: reimplement priomap expansion
netprio kept track of the highest prioidx allocated and resized priomaps accordingly when necessary. This makes it necessary to keep track of prioidx allocation and may end up resizing on every new prioidx. Update extend_netdev_table() such that it takes @target_idx which the priomap should be able to accomodate. If the priomap is large enough, nothing happens; otherwise, the size is doubled until @target_idx can be accomodated. This makes max_prioidx and write_update_netdev_table() unnecessary. write_priomap() now calls extend_netdev_table() directly. 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/uid16.c')
0 files changed, 0 insertions, 0 deletions