]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cgroups: new resource counter inheritance API
authorFrederic Weisbecker <fweisbec@gmail.com>
Fri, 2 Dec 2011 03:12:54 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Dec 2011 05:33:01 +0000 (16:33 +1100)
commit61bfc07b4a0e325385481d5bfa3bdf22ec72cf7c
treeda7b29e82bba57e9b38e51a2dad58ebf0579e23f
parentadd4575cb7340ee54d0d9daec1aef221e04a0989
cgroups: new resource counter inheritance API

Provide an API to inherit a counter value from a parent.  This can be
useful to implement cgroup.clone_children on a resource counter.

Still the resources of the children are limited by those of the parent, so
this is only to provide a default setting behaviour when clone_children is
set.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Menage <paul@paulmenage.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Aditya Kali <adityakali@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Tim Hockin <thockin@hockin.org>
Cc: Tejun Heo <htejun@gmail.com>
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/res_counter.h
kernel/res_counter.c