Now that only reads use mas_node_walk(), there are some situations which will not
need to be checked. offset always starts at zero.
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
return;
}
- offset = mas->offset;
- min = mas_safe_min(mas, pivots, offset);
+ offset = 0;
+ min = mas->min;
max = pivots[offset];
if (unlikely(ma_dead_node(node)))
return;
count = mt_pivots[type];
- if (unlikely(offset == count))
- goto max;
-
index = mas->index;
if (unlikely(index <= max))
goto done;
- if (unlikely(!max && offset))
- goto max;
-
offset++;
min = max + 1;
while (offset < count) {
offset++;
}
-max:
max = mas->max;
done:
*range_max = max;