OSDN Git Service

ion: Consider ion pool pages as indirectly reclaimable
authorVijayanand Jitta <vjitta@codeaurora.org>
Wed, 18 Apr 2018 04:58:16 +0000 (10:28 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 8 May 2018 11:03:37 +0000 (04:03 -0700)
commitf17bd0f3283139abedb56697a0b330e15bfa23f9
tree3e0ed48ed0f659bbbbbd664b8a71d53b8cf8d49b
parentd97c09c1531f4a6c427a33f6d6bf83d1cc1f8098
ion: Consider ion pool pages as indirectly reclaimable

An issue is observed where mallocs are failing due to overcommit failure.
The failure happens when there is high ION page pool since ION page
pool is not considered reclaimable by the overcommit calculation code.
This change considers ion pool pages as indirectly reclaimable and thus
accounted as available memory in the overcommit calculation.

Change-Id: I8d63209b8c19286e55c407459ff124fdc58fdcc2
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
drivers/staging/android/ion/ion_page_pool.c