maple_tree: re-introduce entry to mas_preallocate() arguments
The current preallocation strategy is to preallocate the absolute worst-case allocation for a tree modification. The entry (or NULL) is needed to know how many nodes are needed to write to the tree. Start by adding the argument to the mas_preallocate() definition. Link: https://lkml.kernel.org/r/20230724183157.3939892-8-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>
Showing
- include/linux/maple_tree.h 1 addition, 1 deletioninclude/linux/maple_tree.h
- lib/maple_tree.c 2 additions, 1 deletionlib/maple_tree.c
- mm/internal.h 1 addition, 1 deletionmm/internal.h
- mm/mmap.c 2 additions, 2 deletionsmm/mmap.c
- tools/testing/radix-tree/maple.c 16 additions, 16 deletionstools/testing/radix-tree/maple.c
Loading
Please register or sign in to comment