Commit ea180ffb authored by Roman Gushchin's avatar Roman Gushchin Committed by Alexei Starovoitov
Browse files

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: default avatarRoman Gushchin <roman.gushchin@linux.dev>
Link: https://lore.kernel.org/r/20260106042313.140256-1-roman.gushchin@linux.dev


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent a069190b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);