binder: relocate low space calculation
authorCarlos Llamas <cmllamas@google.com>
Fri, 1 Dec 2023 17:21:43 +0000 (17:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2023 00:23:39 +0000 (09:23 +0900)
commitc13500eaabd2343aa4cbb76b54ec624cb0c0ef8d
treebecf553d90c90e9b227c313896ad15e5f03f1ad3
parent9409af24e4503d14093b27db9425f7c99e64fef4
binder: relocate low space calculation

Move the low async space calculation to debug_low_async_space_locked().
This logic not only fits better here but also offloads some of the many
tasks currently done in binder_alloc_new_buf_locked().

No functional change in this patch.

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