Commit 70823448 authored by Liam R. Howlett's avatar Liam R. Howlett Committed by Treehugger Robot
Browse files

FROMLIST: BACKPORT: maple_tree: Refine mas_preallocate() node calculations



Calculate the number of nodes based on the pending write action instead
of assuming the worst case.

This addresses a performance regression introduced in platforms that
have longer allocation timing.

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

Link: https://lore.kernel.org/all/20230612203953.2093911-15-Liam.Howlett@oracle.com/


[surenb: replace mas_wr_new_end with mas_wr_node_size]

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