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 09:22:39 -08:00
2008-02-05 09:44:18 -08:00
2008-02-05 09:44:19 -08:00
2008-02-07 08:42:18 -08:00
2008-02-09 11:08:33 -08:00
2007-10-20 01:27:18 +02:00
2007-02-15 09:57:03 -08:00
2008-02-08 18:57:39 -08:00
2007-10-18 14:37:31 -07:00
2007-05-21 09:18:19 -07:00
2008-02-05 09:44:19 -08:00
2007-10-20 01:27:18 +02:00
2007-10-17 08:42:45 -07:00
2008-02-09 11:08:33 -08:00
2008-02-08 09:22:41 -08:00
2008-02-07 17:52:39 -08:00
2008-02-07 08:42:20 -08:00
2008-02-07 08:42:19 -08:00
2007-11-14 18:45:41 -08:00
2008-02-05 09:44:18 -08:00