mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
memcg: soft limit reclaim should end at limit not below
Soft limit reclaim continues until the usage is below the current soft limit, but the documented semantics are actually that soft limit reclaim will push usage back until the soft limits are met again. Signed-off-by: Johannes Weiner <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Cc: Daisuke Nishimura <[email protected]> Acked-by: Balbir Singh <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
56039efa18
commit
b7c6167848
2 changed files with 3 additions and 3 deletions
|
|
@ -1477,7 +1477,7 @@ static int mem_cgroup_hierarchical_reclaim(struct mem_cgroup *root_mem,
|
|||
return ret;
|
||||
total += ret;
|
||||
if (check_soft) {
|
||||
if (res_counter_check_under_soft_limit(&root_mem->res))
|
||||
if (res_counter_check_within_soft_limit(&root_mem->res))
|
||||
return total;
|
||||
} else if (mem_cgroup_check_under_limit(root_mem))
|
||||
return 1 + total;
|
||||
|
|
|
|||
Loading…
Reference in a new issue