]> www.infradead.org Git - users/jedix/linux-maple.git/commit
page_counter: track failcnt only for legacy cgroups
authorShakeel Butt <shakeel.butt@linux.dev>
Fri, 28 Feb 2025 07:58:07 +0000 (23:58 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 07:05:35 +0000 (00:05 -0700)
commit0e2759afcaf9bff25a63201856fa89b64181749f
tree67cbf3388a4b814e3b1e656fecc2b37a28db2126
parent645207a670a96ebd7b3cc9b85699a3a03ad35483
page_counter: track failcnt only for legacy cgroups

Currently page_counter tracks failcnt for counters used by v1 and v2
controllers.  However failcnt is only exported for v1 deployment and thus
there is no need to maintain it in v2.  The oom report does expose failcnt
for memory and swap in v2 but v2 already maintains MEMCG_MAX and
MEMCG_SWAP_MAX event counters which can be used.

Link: https://lkml.kernel.org/r/20250228075808.207484-3-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin (Cruise) <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/page_counter.h
mm/hugetlb_cgroup.c
mm/memcontrol.c
mm/page_counter.c