mbox series

[-v2,next,0/4] Some cleanup for memcg

Message ID 20250114122519.1404275-1-chenridong@huaweicloud.com (mailing list archive)
Headers show
Series Some cleanup for memcg | expand

Message

Chen Ridong Jan. 14, 2025, 12:25 p.m. UTC
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(-)