[PATCH 0/3] mas_anode_descend() related cleanup

Wei Yang richard.weiyang at gmail.com
Fri Nov 15 17:48:02 PST 2024


Some cleanup related to mas_anode_descend().

Patch 1: remove an unnecessary check
Patch 2: won't hit root node
Patch 3: on error we don't set offset to MAPLE_NODE_SLOTS

Wei Yang (3):
  maple_tree: index has been checked to be smaller than pivot
  maple_tree: not possible to be a root node after loop
  maple_tree: we don't set offset to MAPLE_NODE_SLOTS on error

 lib/maple_tree.c | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 deletions(-)

-- 
2.34.1




More information about the maple-tree mailing list