Re: [RFC][PATCH 2/6] staging: android: ion: Switch to using an idr to manage heaps

2016-06-08 Thread Liviu Dudau
On Mon, Jun 06, 2016 at 11:23:29AM -0700, Laura Abbott wrote: > From: Laura Abbott > > > In anticipation of dynamic registration of heaps, switch to using > an idr for heaps. The idr makes it easier to control the assignment > and management + lookup of heap numbers. > > Signed-off-by: Laura Ab

[RFC][PATCH 2/6] staging: android: ion: Switch to using an idr to manage heaps

2016-06-06 Thread Laura Abbott
From: Laura Abbott In anticipation of dynamic registration of heaps, switch to using an idr for heaps. The idr makes it easier to control the assignment and management + lookup of heap numbers. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 83 +---