diff options
| author | David Rientjes <[email protected]> | 2008-02-09 00:10:15 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-02-09 11:08:33 -0800 |
| commit | 60c12b1202a60eabb1c61317e5d2678fcea9893f (patch) | |
| tree | 143e5bdbd10d32832fce9183500deebad6c6e4db /scripts/patch-kernel | |
| parent | 6966a97753854c8b5336cf3997d5d1d205d91b12 (diff) | |
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 <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions