diff --git a/mm/memcontrol.c b/mm/memcontrol.c index fc18a2b7d25a..ce19e8484c89 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3453,19 +3453,6 @@ unsigned long mem_cgroup_soft_limit_reclaim(pg_data_t *pgdat, int order, return nr_reclaimed; } -/* - * Test whether @memcg has children, dead or alive. - */ -static inline bool memcg_has_children(struct mem_cgroup *memcg) -{ - bool ret; - - rcu_read_lock(); - ret = css_next_child(NULL, &memcg->css); - rcu_read_unlock(); - return ret; -} - /* * Reclaims as many pages from the given memcg as possible. *