diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-09-24 18:27:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-24 20:00:25 -0400 |
commit | 3120055e869f2a208480f238680d097eec8f0e02 (patch) | |
tree | 0d3c4d85800f2ab0ba1c70e3b8aaf25c630cacf4 /mm/memcontrol.c | |
parent | 8f939a9f4c769500c58c31ec81ce17297388f4bf (diff) |
revert "memcg, vmscan: do not attempt soft limit reclaim if it would not scan anything"
Revert commit e839b6a1c8d0 ("memcg, vmscan: do not attempt soft limit
reclaim if it would not scan anything")
I merged this prematurely - Michal and Johannes still disagree about the
overall design direction and the future remains unclear.
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 5ee0af463f2e..5cf7726764cc 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -1872,11 +1872,7 @@ enum mem_cgroup_filter_t | |||
1872 | mem_cgroup_soft_reclaim_eligible(struct mem_cgroup *memcg, | 1872 | mem_cgroup_soft_reclaim_eligible(struct mem_cgroup *memcg, |
1873 | struct mem_cgroup *root) | 1873 | struct mem_cgroup *root) |
1874 | { | 1874 | { |
1875 | struct mem_cgroup *parent; | 1875 | struct mem_cgroup *parent = memcg; |
1876 | |||
1877 | if (!memcg) | ||
1878 | memcg = root_mem_cgroup; | ||
1879 | parent = memcg; | ||
1880 | 1876 | ||
1881 | if (res_counter_soft_limit_excess(&memcg->res)) | 1877 | if (res_counter_soft_limit_excess(&memcg->res)) |
1882 | return VISIT; | 1878 | return VISIT; |