Commit ce9ebd83 authored by Liam R. Howlett's avatar Liam R. Howlett Committed by Suren Baghdasaryan
Browse files

ANDROID: maple_tree: Move mas_wr_modify node size calculation to mas_wr_node_size()



Create a new function to get the size of the mas_wr_node_size() since it
will be used elsewhere soon.

Drop the incrementing of the node size if this is the left-most node.

Signed-off-by: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>

Link: http://git.infradead.org/users/jedix/linux-maple.git/commit/d781921bc8f9fe0720856a0956fbf3d4119a5180


[surenb: due to the differences with upstream kernel where the node size
can be obtained using mas_wr_new_end() function, this patch is not
applicable upstream. The patch was obtained from the author's tree]

Bug: 274059236
Change-Id: I9f0b5238294d0842b4c2717437ed7288b17c7617
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent b6734cb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment