Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 56dd8109 authored by Vinayak Menon's avatar Vinayak Menon Committed by Zhenhua Huang
Browse files

ion: fix the return value of shrinkers



ION page pool and cma shrinkers return the total pooled
memory instead of the freed. This can result in an early
exit of ION page pool shrinker thus giving back less memory
to the system. For cma shrinker this change doesn't have an
effect since the callers of shrink_slab currently ignores
the return value.

Another, it is to fix a corner case when doing drop caches, eg.
"echo 2/3 > /proc/sys/vm/drop_caches". There is an infinite
loop when freed pages > 10.

Change-Id: I0b3727807d9a5f020623766d27da360d077395f3
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
parent 4953b87a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment