aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/maple.c
diff options
context:
space:
mode:
authorLiam R. Howlett <[email protected]>2023-07-24 18:31:47 +0000
committerAndrew Morton <[email protected]>2023-08-18 17:12:48 +0000
commitc1297987cc2ada57a7faea7985c2334548d110f9 (patch)
tree299a5a01db1772a754349fa6f093cafdce538653 /tools/testing/radix-tree/maple.c
parentmm: remove prev check from do_vmi_align_munmap() (diff)
downloadkernel-c1297987cc2ada57a7faea7985c2334548d110f9.tar.gz
kernel-c1297987cc2ada57a7faea7985c2334548d110f9.zip
maple_tree: introduce __mas_set_range()
mas_set_range() resets the node to MAS_START, which will cause a re-walk of the tree to the range. This is unnecessary when the maple state is already at the correct location of the write. Add a function that only sets the range to avoid unnecessary re-walking of the tree. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Liam R. Howlett <[email protected]> Cc: Peng Zhang <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/maple.c')
0 files changed, 0 insertions, 0 deletions