]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cgroups: add res counter common ancestor searching
authorKirill A. Shutemov <kirill@shutemov.name>
Mon, 24 Oct 2011 14:59:57 +0000 (01:59 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 7 Nov 2011 02:40:31 +0000 (13:40 +1100)
commit8871527236175fb18edd48d433a0ec2880bd567b
tree633387b223fb58933fe44a1253b020e6ecd65ffb
parenta685f3a4c3286172a9dfa83e74f2b6c7314e5651
cgroups: add res counter common ancestor searching

Add a new API to find the common ancestor between two resource counters.
This includes the passed resource counter themselves.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <paul@paulmenage.org>
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>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/res_counter.h
kernel/res_counter.c