linux/drivers/android
Carlos Llamas 0d35bf3bf2 binder: split up binder_update_page_range()
The binder_update_page_range() function performs both allocation and
freeing of binder pages. However, these two operations are unrelated and
have no common logic. In fact, when a free operation is requested, the
allocation logic is skipped entirely. This behavior makes the error path
unnecessarily complex. To improve readability of the code, this patch
splits the allocation and freeing operations into separate functions.

No functional changes are introduced by 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-11-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-05 09:23:39 +09:00
..
binder_alloc_selftest.c binder: keep vma addresses type as unsigned long 2023-12-05 09:23:38 +09:00
binder_alloc.c binder: split up binder_update_page_range() 2023-12-05 09:23:39 +09:00
binder_alloc.h binder: keep vma addresses type as unsigned long 2023-12-05 09:23:38 +09:00
binder_internal.h Binder: Add async from to transaction record 2023-05-13 20:38:12 +09:00
binder_trace.h binder: keep vma addresses type as unsigned long 2023-12-05 09:23:38 +09:00
binder.c binder: keep vma addresses type as unsigned long 2023-12-05 09:23:38 +09:00
binderfs.c Char/Misc and other driver changes for 6.7-rc1 2023-11-03 14:51:08 -10:00
Kconfig remove CONFIG_ANDROID 2022-07-01 10:41:09 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00