aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/netprio_cgroup.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2012-04-25 01:11:35 +0200
committerTejun Heo <tj@kernel.org>2012-04-27 14:36:45 -0700
commit4d8438f044d8aaac6fbba98316ba484dabea397d (patch)
tree90c63abf93502bfecff1f098732c2f0a0d13c024 /net/core/netprio_cgroup.c
parentcgroups: disallow attaching kthreadd or PF_THREAD_BOUND threads (diff)
downloadlinux-dev-4d8438f044d8aaac6fbba98316ba484dabea397d.tar.xz
linux-dev-4d8438f044d8aaac6fbba98316ba484dabea397d.zip
res_counter: Merge res_counter_charge and res_counter_charge_nofail
These two functions do almost the same thing and duplicate some code. Merge their implementation into a single common function. res_counter_charge_locked() takes one more parameter but it doesn't seem to be used outside res_counter.c yet anyway. There is no (intended) change in the behaviour. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Glauber Costa <glommer@parallels.com> Acked-by: Kirill A. Shutemov <kirill@shutemov.name> Cc: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'net/core/netprio_cgroup.c')
0 files changed, 0 insertions, 0 deletions