diff options
| author | Li Zefan <[email protected]> | 2013-07-08 16:00:34 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-07-09 10:33:24 -0700 |
| commit | 4050377b509b326c14b275fedb2f69b46f37a7a9 (patch) | |
| tree | dda709eadbb2f0bd388811c6efaaeff65349b824 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 10d5ebf40ff09db03b97cb177f24b9c7c8b4bb52 (diff) | |
memcg: use css_get/put for swap memcg
Use css_get/put instead of mem_cgroup_get/put. A simple replacement
will do.
The historical reason that memcg has its own refcnt instead of always
using css_get/put, is that cgroup couldn't be removed if there're still
css refs, so css refs can't be used as long-lived reference. The
situation has changed so that rmdir a cgroup will succeed regardless css
refs, but won't be freed until css refs goes down to 0.
Signed-off-by: Li Zefan <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Glauber Costa <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions