]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Refine mas_preallocate() node calculations
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 2 May 2023 00:34:58 +0000 (20:34 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 2 May 2023 03:00:31 +0000 (23:00 -0400)
commit6e7b8ed528583d1859194c7ab862e50ebefb088f
treefa24a2d19477aaf93fd1b486ab2980a1292a96bb
parentd781921bc8f9fe0720856a0956fbf3d4119a5180
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: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c