]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memcg: move v1 events and statistics code to v1 file
authorShakeel Butt <shakeel.butt@linux.dev>
Thu, 15 Aug 2024 05:04:50 +0000 (22:04 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:24 +0000 (17:53 -0700)
commit69cdfd1d72fe3df9f80e8c5eb95c33026451b8e0
tree75865a68b854f8d0002c7ff0934beb85ea53eeb8
parentee7e040003e8815b82bfc074953b41f5c89db11c
memcg: move v1 events and statistics code to v1 file

Currently the common code path for charge commit, swapout and batched
uncharge are executing v1 only code which is completely useless for the v2
deployments where CONFIG_MEMCG_V1 is disabled.  In addition, it is mucking
with IRQs which might be slow on some architectures.  Let's move all of
this code to v1 only code and remove them from v2 only deployments.

Link: https://lkml.kernel.org/r/20240815050453.1298138-5-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 <roman.gushchin@linux.dev>
Cc: T.J. Mercier <tjmercier@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol-v1.c
mm/memcontrol-v1.h
mm/memcontrol.c