From: Michal Hocko Date: Tue, 26 Jul 2011 23:08:29 +0000 (-0700) Subject: memcg: add mem_cgroup_same_or_subtree() helper X-Git-Tag: v3.1-rc1~203 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e92041d68b40c47faa34c7dc08fc650a6c36adc;p=pandora-kernel.git memcg: add mem_cgroup_same_or_subtree() helper We are checking whether a given two groups are same or at least in the same subtree of a hierarchy at several places. Let's make a helper for it to make code easier to read. Signed-off-by: Michal Hocko Acked-by: KAMEZAWA Hiroyuki Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed