David Rientjes 60c12b1202 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 <rientjes@google.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-09 11:08:33 -08:00
..
2008-02-08 15:33:32 -08:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:39 -08:00
2008-02-08 15:37:13 -08:00
2008-02-08 15:33:32 -08:00
2008-02-09 11:08:33 -08:00
2008-02-03 17:19:47 +02:00
2008-02-06 10:41:16 -08:00