]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cgroups: add res counter common ancestor searching
authorKirill A. Shutemov <kirill@shutemov.name>
Wed, 5 Oct 2011 00:43:47 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Oct 2011 06:00:04 +0000 (17:00 +1100)
commitf2b0b3f4013aefa3b57d94c1841a3778be24d4a2
treefa696caa9f19ffea2b90fa98fef509b76b2dd211
parent9334627c2905f22f0acd671b7feb58148e07ce6a
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@google.com>
include/linux/res_counter.h
kernel/res_counter.c