ion: index client->handles rbtree by buffer
authorColin Cross <ccross@android.com>
Fri, 13 Dec 2013 22:24:51 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:57:18 +0000 (08:57 -0800)
commite1cf36823407751d1ad1168bc718cf5a0ac5dbf4
treeb5c66d31491bba77d3a5daa0ce7182819c01b9cb
parent47b404580bd92ec8dd3e691020bd515f6af262af
ion: index client->handles rbtree by buffer

The only remaining users of the client->handles rbtree are
iterating through it like a list.  Keep the rbtree, but change
its index to be the buffer address instead of the handle address,
which makes ion_handle_lookup a fast rbtree search.

Signed-off-by: Colin Cross <ccross@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c