Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <roman.gushchin@linux.dev>
Link: https://lore.kernel.org/r/20260106042313.140256-1-roman.gushchin@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Roman Gushchin and committed by
Alexei Starovoitov
ea180ffb a069190b

-1
-1
include/linux/memcontrol.h
··· 950 950 } 951 951 952 952 unsigned long memcg_events(struct mem_cgroup *memcg, int event); 953 - unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap); 954 953 unsigned long memcg_page_state(struct mem_cgroup *memcg, int idx); 955 954 unsigned long memcg_page_state_output(struct mem_cgroup *memcg, int item); 956 955 bool memcg_stat_item_valid(int idx);