summaryrefslogtreecommitdiff
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@oracle.com>2023-07-24 14:31:55 -0400
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 10:12:50 -0700
commit17983dc617837a588a52848ab4034d8efa6c1fa6 (patch)
tree889f63c90352aa40c8360f78fe115cab5305e28b /mm/hugetlb.c
parent0b8bb544b1a7051c9072c26ca03a7840fb9573ad (diff)
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. Link: https://lkml.kernel.org/r/20230724183157.3939892-14-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Peng Zhang <zhangpeng.00@bytedance.com> Cc: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions