linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -v2 next 0/4] Some cleanup for memcg
@ 2025-01-14 12:25 Chen Ridong
  2025-01-14 12:25 ` [PATCH -v2 next 1/4] memcg: use OFP_PEAK_UNSET instead of -1 Chen Ridong
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Chen Ridong @ 2025-01-14 12:25 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.

---
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 (4):
  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

 mm/memcontrol.c | 127 ++++++++++++++++++++++--------------------------
 1 file changed, 59 insertions(+), 68 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-01-16  1:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-14 12:25 [PATCH -v2 next 0/4] Some cleanup for memcg Chen Ridong
2025-01-14 12:25 ` [PATCH -v2 next 1/4] memcg: use OFP_PEAK_UNSET instead of -1 Chen Ridong
2025-01-14 18:36   ` Roman Gushchin
2025-01-14 12:25 ` [PATCH -v2 next 2/4] memcg: call the free function when allocation of pn fails Chen Ridong
2025-01-14 18:36   ` Roman Gushchin
2025-01-14 12:25 ` [PATCH -v2 next 3/4] memcg: factor out the replace_stock_objcg function Chen Ridong
2025-01-14 18:39   ` Roman Gushchin
2025-01-16  0:56   ` Shakeel Butt
2025-01-14 12:25 ` [PATCH -v2 next 4/4] memcg: factor out stat(event)/stat_local(event_local) reading functions Chen Ridong
2025-01-14 18:45   ` Roman Gushchin
2025-01-16  0:57     ` Shakeel Butt
2025-01-16  1:21       ` Chen Ridong

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