[PATCH v2 9/9] staging: ion: optimize struct ion_system_heap

2014-05-28 Thread Heesub Shin
struct ion_system_heap has an array for storing pointers to page pools and it is allocated separately from the containing structure. There is no point in allocating those two small objects individually, bothering slab allocator. Using a variable length array simplifies code lines and reduces

[PATCH v2 9/9] staging: ion: optimize struct ion_system_heap

2014-05-28 Thread Heesub Shin
struct ion_system_heap has an array for storing pointers to page pools and it is allocated separately from the containing structure. There is no point in allocating those two small objects individually, bothering slab allocator. Using a variable length array simplifies code lines and reduces