mbox series

[0/3] mas_anode_descend() related cleanup

Message ID 20241116014805.11547-1-richard.weiyang@gmail.com (mailing list archive)
Headers show
Series mas_anode_descend() related cleanup | expand

Message

Wei Yang Nov. 16, 2024, 1:48 a.m. UTC
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(-)