linux/drivers/staging/android
Gioh Kim b44d9ce3b8 staging: ion: shrink page-pool by page unit
This patch shrink page-pool by page unit.

The system shrinker calls ion_heap_shrink_count() to get nr_to_scan,
and pass it to ion_heap_shrink_scan().
The problem is the return value of ion_heap_shrink_count() is the number
of pages but ion_system_heap_shrink(), which is called by
ion_heap_shrink_scan(), gets the number of chunk.

The main root of this is that ion_page_pool_shrink() returns page count
via ion_page_pool_total() if it have to check pool size. But it frees
chunks of pages if it have to free pools.

This patch first fix ion_page_pool_shrink() to count only pages,
not chunks. And then ion_system_heap_shrink() to work on pages.

Signed-off-by: Gioh Kim <gioh.kim@lge.com>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-07-14 22:47:30 -07:00
..
ion staging: ion: shrink page-pool by page unit 2015-07-14 22:47:30 -07:00
trace android: convert sync to fence api, v6 2014-07-08 13:28:26 -07:00
uapi Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
ashmem.c ashmem: use __vfs_read() 2015-04-11 22:29:38 -04:00
ashmem.h
Kconfig staging: android: Add more help description on Kconfig 2015-05-24 13:27:13 -07:00
lowmemorykiller.c Staging driver patches for 4.2-rc1 2015-06-26 15:46:08 -07:00
Makefile staging: Remove logger and alarm-dev from android Makefile 2015-01-28 11:32:39 -08:00
sw_sync.c staging: android: sw_sync: checkpatch fixes 2014-09-19 16:35:53 -07:00
sw_sync.h staging: android: sw_sync: checkpatch fixes 2014-09-19 16:35:53 -07:00
sync_debug.c Staging: android: fix line length coding style issue in sync_debug.c 2015-01-17 16:17:11 -08:00
sync.c staging: android: sync: Fix memory corruption in sync_timeline_signal(). 2015-03-26 10:58:51 +01:00
sync.h staging : android : sync : get_unused_fd 2014-09-28 22:03:57 -04:00
timed_gpio.c Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
timed_gpio.h
timed_output.c Staging: android: timed_output.c: use kstrtoint() instead of sscanf() 2014-07-30 17:17:02 -07:00
timed_output.h
TODO staging: android: logger: Add a TODO 2014-11-03 16:09:28 -08:00