aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 18dcdac0b158..e6de0d6a3a8d 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2610,6 +2610,9 @@ static int mem_cgroup_force_empty(struct mem_cgroup *memcg)
2610 2610
2611 /* we call try-to-free pages for make this cgroup empty */ 2611 /* we call try-to-free pages for make this cgroup empty */
2612 lru_add_drain_all(); 2612 lru_add_drain_all();
2613
2614 drain_all_stock(memcg);
2615
2613 /* try to free all pages in this cgroup */ 2616 /* try to free all pages in this cgroup */
2614 while (nr_retries && page_counter_read(&memcg->memory)) { 2617 while (nr_retries && page_counter_read(&memcg->memory)) {
2615 int progress; 2618 int progress;