diff options
| author | Bob Liu <[email protected]> | 2012-01-12 17:18:48 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-01-12 20:13:07 -0800 |
| commit | 9fb4b7cc0724f178d4b24a2a566ea1e7cb120b82 (patch) | |
| tree | 0f2db9102d46f5e5c8492864fb1bd21f2e7cd768 /tools/perf/scripts/python | |
| parent | 40f23a21a8501c1b2c65c50c19b516488ac31313 (diff) | |
page_cgroup: add helper function to get swap_cgroup
There are multiple places which need to get the swap_cgroup address, so
add a helper function:
static struct swap_cgroup *swap_cgroup_getsc(swp_entry_t ent,
struct swap_cgroup_ctrl **ctrl);
to simplify the code.
Signed-off-by: Bob Liu <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[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')
0 files changed, 0 insertions, 0 deletions