aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler_types.h
diff options
context:
space:
mode:
authorRoman Gushchin <roman.gushchin@linux.dev>2024-06-24 17:58:54 -0700
committerAndrew Morton <akpm@linux-foundation.org>2024-07-04 18:05:51 -0700
commitd12f6d22416bb77e76a93903a717e029b66df002 (patch)
tree38c1d6bd5feb18473ad2626f78ef748d76aabe44 /include/linux/compiler_types.h
parentmm: memcg: introduce memcontrol-v1.c (diff)
downloadlinux-rng-d12f6d22416bb77e76a93903a717e029b66df002.tar.xz
linux-rng-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 'include/linux/compiler_types.h')
0 files changed, 0 insertions, 0 deletions