Commit b23dbdbf authored by Carlos Llamas's avatar Carlos Llamas Committed by Treehugger Robot
Browse files

BACKPORT: FROMGIT: binder: refactor page range allocation



Instead of looping through the page range twice to first determine if
the mmap lock is required, simply do it per-page as needed. Split out
all this logic into a separate binder_install_single_page() function.

Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-17-cmllamas@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 254650075
(cherry picked from commit ea2735ce
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git


 char-misc-next)
Change-Id: Ic057e9cfaeb22754f99bdec2a51076cf58c86855
[cmllamas: fixed conflicts due to missing e66b77e5]
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
parent 59e0d62f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment