Commit aa20d489ceb024f91aae084ee00c47fc6a12255c
Committed by
Linus Torvalds
1 parent
9ab322caa3
Exists in
master
and in
4 other branches
memcg: code clean, remove unused variable in mem_cgroup_resize_limit()
Variable `progress' isn't used in mem_cgroup_resize_limit() any more. Remove it. [akpm@linux-foundation.org: cleanup] Signed-off-by: Bob Liu <lliubbo@gmail.com> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Reviewed-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
mm/memcontrol.c
... | ... | @@ -2311,7 +2311,6 @@ |
2311 | 2311 | unsigned long long val) |
2312 | 2312 | { |
2313 | 2313 | int retry_count; |
2314 | - int progress; | |
2315 | 2314 | u64 memswlimit; |
2316 | 2315 | int ret = 0; |
2317 | 2316 | int children = mem_cgroup_count_children(memcg); |
... | ... | @@ -2355,8 +2354,7 @@ |
2355 | 2354 | if (!ret) |
2356 | 2355 | break; |
2357 | 2356 | |
2358 | - progress = mem_cgroup_hierarchical_reclaim(memcg, NULL, | |
2359 | - GFP_KERNEL, | |
2357 | + mem_cgroup_hierarchical_reclaim(memcg, NULL, GFP_KERNEL, | |
2360 | 2358 | MEM_CGROUP_RECLAIM_SHRINK); |
2361 | 2359 | curusage = res_counter_read_u64(&memcg->res, RES_USAGE); |
2362 | 2360 | /* Usage is reduced ? */ |