Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
bool mas_is_span_wr(struct ma_state *mas, unsigned long piv,
enum maple_type type, void *entry)
{
+ unsigned long max;
unsigned long last = mas->last;
- unsigned long max = mas->max;
if (piv > last) // Contained in this pivot
return false;
+ max = mas->max;
if (unlikely(ma_is_leaf(type))) {
if (last < max) // Fits in the node, but may span slots.
return false;
index = mas->index;
while (offset < count) {
-
max = pivots[offset];
- if (unlikely(!max && offset)) {
+ if (unlikely(!max && offset))
break;
- }
if (index <= max)
goto done;