From: David Rientjes Date: Sat, 9 Feb 2008 08:10:15 +0000 (-0800) Subject: memcontrol: add vm_match_cgroup() X-Git-Tag: v2.6.25-rc1~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60c12b1202a60eabb1c61317e5d2678fcea9893f;p=pandora-kernel.git memcontrol: add vm_match_cgroup() mm_cgroup() is exclusively used to test whether an mm's mem_cgroup pointer is pointing to a specific cgroup. Instead of returning the pointer, we can just do the test itself in a new macro: vm_match_cgroup(mm, cgroup) returns non-zero if the mm's mem_cgroup points to cgroup. Otherwise it returns zero. Signed-off-by: David Rientjes Cc: Balbir Singh Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed