From: Chen Ridong <chenridong@huaweicloud.com>
To: akpm@linux-foundation.org, mhocko@kernel.org, hannes@cmpxchg.org,
yosryahmed@google.com, roman.gushchin@linux.dev,
shakeel.butt@linux.dev, muchun.song@linux.dev, davidf@vimeo.com,
vbabka@suse.cz, mkoutny@suse.com
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
cgroups@vger.kernel.org, chenridong@huawei.com,
wangweiyang2@huawei.com
Subject: [PATCH -v4 next 0/4] Some cleanup for memcg
Date: Fri, 24 Jan 2025 07:35:10 +0000 [thread overview]
Message-ID: <20250124073514.2375622-1-chenridong@huaweicloud.com> (raw)
From: Chen Ridong <chenridong@huawei.com>
Some cleanup for memcg.
In this series, patches 1-3 have been reviewed.
Patch 4 is new, which adds CONFIG_MEMCG_V1 for the local functions,
suggested by Johannes Weiner.
---
v3->v4:
- keep the 'local' functions in the memcontrol-v1.c and add
CONFIG_MEMCG_V1 for them.
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 (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: add CONFIG_MEMCG_V1 for 'local' functions
mm/memcontrol-v1.h | 6 ++---
mm/memcontrol.c | 61 ++++++++++++++++++++++++++--------------------
2 files changed, 38 insertions(+), 29 deletions(-)
--
2.34.1
next reply other threads:[~2025-01-24 7:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-24 7:35 Chen Ridong [this message]
2025-01-24 7:35 ` [PATCH -v4 next 1/4] memcg: use OFP_PEAK_UNSET instead of -1 Chen Ridong
2025-01-25 1:34 ` Roman Gushchin
2025-01-24 7:35 ` [PATCH -v4 next 2/4] memcg: call the free function when allocation of pn fails Chen Ridong
2025-01-25 1:34 ` Roman Gushchin
2025-01-24 7:35 ` [PATCH -v4 next 3/4] memcg: factor out the replace_stock_objcg function Chen Ridong
2025-01-24 7:35 ` [PATCH -v4 next 4/4] memcg: add CONFIG_MEMCG_V1 for 'local' functions Chen Ridong
2025-01-24 15:59 ` Johannes Weiner
2025-01-24 19:57 ` Shakeel Butt
2025-01-25 1:37 ` Roman Gushchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250124073514.2375622-1-chenridong@huaweicloud.com \
--to=chenridong@huaweicloud.com \
--cc=akpm@linux-foundation.org \
--cc=cgroups@vger.kernel.org \
--cc=chenridong@huawei.com \
--cc=davidf@vimeo.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=mkoutny@suse.com \
--cc=muchun.song@linux.dev \
--cc=roman.gushchin@linux.dev \
--cc=shakeel.butt@linux.dev \
--cc=vbabka@suse.cz \
--cc=wangweiyang2@huawei.com \
--cc=yosryahmed@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox