diff options
| author | Roman Gushchin <[email protected]> | 2024-06-24 17:59:00 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-04 18:05:53 -0700 |
| commit | 292fc2e0204aa02a24f6d2684d71801068fec803 (patch) | |
| tree | 505b4d81271bb9e8f12b7751599ba3968757bbd9 /tools/perf/scripts/python | |
| parent | cc7b8504f624157c9be7aea9c9a9d5010fd908c9 (diff) | |
mm: memcg: move cgroup v1 oom handling code into memcontrol-v1.c
Cgroup v1 supports a complicated OOM handling in userspace mechanism,
which is not supported by cgroup v2. Let's move the corresponding code
into memcontrol-v1.c.
Aside from mechanical code movement this patch introduces two new
functions: memcg1_oom_prepare() and memcg1_oom_finish(). Those are
implementing cgroup v1-specific parts of the common memcg OOM handling
path.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Roman Gushchin <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: Shakeel Butt <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions