aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index a5e0417b4f9a..6144a8e7283f 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4857,11 +4857,6 @@ static inline bool memcg_has_children(struct mem_cgroup *memcg)
4857static int mem_cgroup_force_empty(struct mem_cgroup *memcg) 4857static int mem_cgroup_force_empty(struct mem_cgroup *memcg)
4858{ 4858{
4859 int nr_retries = MEM_CGROUP_RECLAIM_RETRIES; 4859 int nr_retries = MEM_CGROUP_RECLAIM_RETRIES;
4860 struct cgroup *cgrp = memcg->css.cgroup;
4861
4862 /* returns EBUSY if there is a task or if we come here twice. */
4863 if (cgroup_has_tasks(cgrp) || !list_empty(&cgrp->children))
4864 return -EBUSY;
4865 4860
4866 /* we call try-to-free pages for make this cgroup empty */ 4861 /* we call try-to-free pages for make this cgroup empty */
4867 lru_add_drain_all(); 4862 lru_add_drain_all();
@@ -4881,8 +4876,6 @@ static int mem_cgroup_force_empty(struct mem_cgroup *memcg)
4881 } 4876 }
4882 4877
4883 } 4878 }
4884 lru_add_drain();
4885 mem_cgroup_reparent_charges(memcg);
4886 4879
4887 return 0; 4880 return 0;
4888} 4881}