binder: refactor binder_delete_free_buffer()
authorCarlos Llamas <cmllamas@google.com>
Fri, 1 Dec 2023 17:21:54 +0000 (17:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2023 00:23:40 +0000 (09:23 +0900)
commitf07b83a48e944c8a1cc1e9f6703fae5e34df2ba4
tree389f0b3eb26c73a5ccc29da00ed899d150fb2888
parent8e905217c4543af9cf1754809846157a7dbbb261
binder: refactor binder_delete_free_buffer()

Skip the freelist call immediately as needed, instead of continuing the
pointless checks. Also, drop the debug logs that we don't really need.

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-26-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.c