OSDN Git Service

ion: fix the return value of shrinkers
authorVinayak Menon <vinmenon@codeaurora.org>
Tue, 19 Sep 2017 09:34:09 +0000 (15:04 +0530)
committerVinayak Menon <vinmenon@codeaurora.org>
Thu, 21 Sep 2017 09:43:59 +0000 (15:13 +0530)
commitd385ca7d0600671fb29e294c4a622d470cfae478
tree2ba3b8e666e4a24322f36bbfad21440b66f908f3
parentd727a95d2e023f5557e893aaf50a75d144f4a71e
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.

Change-Id: I0b3727807d9a5f020623766d27da360d077395f3
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
drivers/staging/android/ion/ion_cma_secure_heap.c
drivers/staging/android/ion/ion_page_pool.c