summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorRoman Gushchin <roman.gushchin@linux.dev>2024-06-25 02:59:00 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-07-05 03:05:53 +0200
commit292fc2e0204aa02a24f6d2684d71801068fec803 (patch)
tree505b4d81271bb9e8f12b7751599ba3968757bbd9 /rust
parentmm: memcg: rename memcg_check_events() (diff)
downloadlinux-292fc2e0204aa02a24f6d2684d71801068fec803.tar.xz
linux-292fc2e0204aa02a24f6d2684d71801068fec803.zip
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/20240625005906.106920-9-roman.gushchin@linux.dev Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev> Acked-by: Michal Hocko <mhocko@suse.com> Acked-by: Shakeel Butt <shakeel.butt@linux.dev> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Muchun Song <muchun.song@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions