mm: drop mem_cgroup_usage() declaration from memcontrol.h
Subsystems (5)
Roman Gushchin
maintainerPATCH 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.
Signed-off-by Roman Gushchin <[email protected]>
--- include/linux/memcontrol.h | 1 - 1 file changed, 1 deletion(-)
include/linux/memcontrol.h +0 -1
@@ -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
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.Signed-off-by Roman Gushchin <[email protected]>--- 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