diff options
| author | Roman Gushchin <roman.gushchin@linux.dev> | 2024-06-24 17:58:54 -0700 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-07-04 18:05:51 -0700 |
| commit | d12f6d22416bb77e76a93903a717e029b66df002 (patch) | |
| tree | 38c1d6bd5feb18473ad2626f78ef748d76aabe44 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | mm: memcg: introduce memcontrol-v1.c (diff) | |
| download | linux-d12f6d22416bb77e76a93903a717e029b66df002.tar.gz linux-d12f6d22416bb77e76a93903a717e029b66df002.zip | |
mm: memcg: move soft limit reclaim code to memcontrol-v1.c
Soft limits are cgroup v1-specific and are not supported by cgroup v2, so
let's move the corresponding code into memcontrol-v1.c.
Aside from simple moving the code, this commits introduces a trivial
memcg1_soft_limit_reset() function to reset soft limits and also moves the
global soft limit tree initialization code into a new memcg1_init()
function.
It also moves corresponding declarations shared between memcontrol.c and
memcontrol-v1.c into mm/memcontrol-v1.h.
Link: https://lkml.kernel.org/r/20240625005906.106920-3-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
