Skip to contentSkip to conversation

mm: drop mem_cgroup_usage() declaration from memcontrol.h

PATCH Applied Roman Gushchin 2 participants 2 messages Jan 6

Subsystems (5)
lore
Share & tools
lore

Roman Gushchin

author maintainer
#0 lore raw

PATCH 1/1 mm: drop mem_cgroup_usage() declaration from memcontrol.h

mem_cgroup_usage() is not used outside of memcg-v1 code, the declaration was added by a mistake.

---
 include/linux/memcontrol.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/memcontrol.h +0 -1
index 6a5d65487b70..229ac9835adb 100644
@@ -950,7 +950,6 @@ static inline void mod_memcg_page_state(struct page *page,
 }
 
 unsigned long memcg_events(struct mem_cgroup *memcg, int event);
-unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap);
 unsigned long memcg_page_state(struct mem_cgroup *memcg, int idx);
 unsigned long memcg_page_state_output(struct mem_cgroup *memcg, int item);
 bool memcg_stat_item_valid(int idx);
Signature · 1 line
2.52.0
#1 lore raw
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Quoted 7 lines · On Mon, 5 Jan 2026 20:23:13 -0800 you wrote:

mem_cgroup_usage() is not used outside of memcg-v1 code, the declaration was added by a mistake.

---
 include/linux/memcontrol.h | 1 -
 1 file changed, 1 deletion(-)

Here is the summary with links:
- [bpf-next] mm: drop mem_cgroup_usage() declaration from memcontrol.h

    https://git.kernel.org/bpf/bpf-next/c/ea180ffbd27c

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html