Skip to content

align maple tree write paths

Sidhartha Kumar linux-mm lkml llvm oe-kbuild-all oe-lkp 1 version NAK

Status from this message: NACK - Stopping the bot from testing this further.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/3maple_tree: introduce mas_prealloc_calc()lib/maple_tree.c+50 -351 reply
2/3maple_tree: use preallocations in mas_store_gfp()lib/maple_tree.c+19 -38 replies
3/3maple_tree: use preallocations in mas_erase()lib/maple_tree.c+19 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] align maple tree write paths

This series modifies the store paths in mas_store_gfp() and mas_erase() to use the newly refined preallocation calculation before their calls to mas_wr_store_entry(). This will avoid having to do worst case calculations.

Patch 1 abstracts the calculation outside of mas_preallocate() so it can be used externally.

Patch 2 modifies the write path in mas_store_gfp() to use preallocations and patch 3 does this in mas_erase().

The motivation for this series is part of the Maple Tree work list[1].

========== TESTING ==============
Testing was done with the maple tree test suite.
maple_tree: 570172962 of 570172962 tests passed

rebased on mm-unstable 10/09/23

[1]: https://lore.kernel.org/linux-mm/20230912172845.o54szwf33hc6p7ee@revolver/T/

Sidhartha Kumar (3):
maple_tree: introduce mas_prealloc_calc()
maple_tree: use preallocations in mas_store_gfp()
maple_tree: use preallocations in mas_erase()

 lib/maple_tree.c | 128 ++++++++++++++++++++++++++++++++---------------
 1 file changed, 88 insertions(+), 40 deletions(-)
Signature · 1 line
2.41.0