linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next v2 0/2] memcg cleanups
@ 2025-12-10  7:11 Chen Ridong
  2025-12-10  7:11 ` [PATCH -next v2 1/2] memcg: move mem_cgroup_usage memcontrol-v1.c Chen Ridong
  2025-12-10  7:11 ` [PATCH -next v2 2/2] memcg: remove mem_cgroup_size() Chen Ridong
  0 siblings, 2 replies; 11+ messages in thread
From: Chen Ridong @ 2025-12-10  7:11 UTC (permalink / raw)
  To: hannes, mhocko, roman.gushchin, shakeel.butt, muchun.song, akpm,
	axelrasmussen, yuanchu, weixugc, david, zhengqi.arch,
	lorenzo.stoakes
  Cc: cgroups, linux-mm, linux-kernel, lujialin4, chenridong

From: Chen Ridong <chenridong@huawei.com>

This series cleans up two helpers in memcg:

1/2 moves mem_cgroup_usage() to memcontrol-v1.c
2/2 removes mem_cgroup_size()

Both are code moves/removals with no behavior change.

---
Change from v1:
1. Added CONFIG_MEMCG compilation guard to apply_proportional_protection()

Chen Ridong (2):
  memcg: move mem_cgroup_usage memcontrol-v1.c
  memcg: remove mem_cgroup_size()

 include/linux/memcontrol.h |  7 -------
 mm/memcontrol-v1.c         | 22 ++++++++++++++++++++++
 mm/memcontrol-v1.h         |  2 --
 mm/memcontrol.c            | 27 ---------------------------
 mm/vmscan.c                |  8 +++++---
 5 files changed, 27 insertions(+), 39 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-12-11  0:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10  7:11 [PATCH -next v2 0/2] memcg cleanups Chen Ridong
2025-12-10  7:11 ` [PATCH -next v2 1/2] memcg: move mem_cgroup_usage memcontrol-v1.c Chen Ridong
2025-12-10  8:01   ` Michal Hocko
2025-12-10 16:28   ` Johannes Weiner
2025-12-10  7:11 ` [PATCH -next v2 2/2] memcg: remove mem_cgroup_size() Chen Ridong
2025-12-10  8:05   ` Michal Hocko
2025-12-10  8:31     ` Chen Ridong
2025-12-10  8:37       ` Michal Hocko
2025-12-10  8:42     ` Chen Ridong
2025-12-10 16:36   ` Johannes Weiner
2025-12-11  0:43     ` Chen Ridong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).