ion: Consider ion pool pages as indirectly reclaimable
authorVijayanand Jitta <vjitta@codeaurora.org>
Wed, 25 Apr 2018 03:24:47 +0000 (08:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:49:59 +0000 (18:49 -0700)
commit548cbba1160c6cbd9133635ae6f663a11550a304
tree79fb33f42bad8ea174e8348189f847de48c2f29f
parent7a787c25b8df1776be164fb7c9d27d1ec50272d6
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.

Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c