linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 next 0/5] Some cleanup for memcg
@ 2025-01-17  1:46 Chen Ridong
  2025-01-17  1:46 ` [PATCH v3 next 1/5] memcg: use OFP_PEAK_UNSET instead of -1 Chen Ridong
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Chen Ridong @ 2025-01-17  1:46 UTC (permalink / raw)
  To: akpm, mhocko, hannes, yosryahmed, roman.gushchin, shakeel.butt,
	muchun.song, davidf, vbabka, mkoutny
  Cc: linux-mm, linux-kernel, cgroups, chenridong, wangweiyang2

From: Chen Ridong <chenridong@huawei.com>

Some cleanup for memcg

---

v2->v3:
 - move the wrapper function definitions to header files.
 - add a patch to move the 'local' functions to the memcontrol-v1.c.

v1->v2:
 - drop the patch 'simplify the mem_cgroup_update_lru_size function'.
 - for patch 3, rename '__refill_obj_stock' to replace_stock_objcg, and
   keep the 'objcg equal' check in the calling functions.

Chen Ridong (5):
  memcg: use OFP_PEAK_UNSET instead of -1
  memcg: call the free function when allocation of pn fails
  memcg: factor out the replace_stock_objcg function
  memcg: factor out stat(event)/stat_local(event_local) reading
    functions
  memcg: move the 'local' functions to memcontrol-v1.c

 include/linux/memcontrol.h |  25 +++++--
 mm/memcontrol-v1.c         |  17 +++++
 mm/memcontrol-v1.h         |  11 ++--
 mm/memcontrol.c            | 130 ++++++++++++-------------------------
 4 files changed, 86 insertions(+), 97 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-01-24  7:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-17  1:46 [PATCH v3 next 0/5] Some cleanup for memcg Chen Ridong
2025-01-17  1:46 ` [PATCH v3 next 1/5] memcg: use OFP_PEAK_UNSET instead of -1 Chen Ridong
2025-01-17 16:47   ` Johannes Weiner
2025-01-17  1:46 ` [PATCH v3 next 2/5] memcg: call the free function when allocation of pn fails Chen Ridong
2025-01-17 16:47   ` Johannes Weiner
2025-01-17  1:46 ` [PATCH v3 next 3/5] memcg: factor out the replace_stock_objcg function Chen Ridong
2025-01-17 16:48   ` Johannes Weiner
2025-01-17  1:46 ` [PATCH v3 next 4/5] memcg: factor out stat(event)/stat_local(event_local) reading functions Chen Ridong
2025-01-17 16:56   ` Johannes Weiner
2025-01-17 17:01     ` Yosry Ahmed
2025-01-17 18:02       ` Johannes Weiner
2025-01-21 14:15         ` Chen Ridong
2025-01-24  4:23           ` Johannes Weiner
2025-01-24  7:42             ` Chen Ridong
2025-01-17  1:46 ` [PATCH v3 next 5/5] memcg: move the 'local' functions to memcontrol-v1.c Chen Ridong
2025-01-17 16:57   ` Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox