*
*/
static inline int mas_split(struct ma_state *mas, unsigned char slot,
- bool active, unsigned entry_cnt, void *entry)
+ bool active, unsigned char entry_cnt, void *entry)
{
struct maple_enode *full = mas->node;
unsigned char split, p_slot = 0, p_end = 0, link = 0;
MA_STATE(parent, mas->tree, mas->index, mas->last);
MA_STATE(left, mas->tree, mas->index, mas->last);
- MA_STATE(right , mas->tree, mas->index, mas->last);
+ MA_STATE(right, mas->tree, mas->index, mas->last);
MA_STATE(new_p_mas, mas->tree, mas->index, mas->last);
type = mte_node_type(mas->node);
if (max > mas->last) { // ends before this_slot.
void *prev_val = mas_get_rcu_slot(mas, slot);
+
slot_cnt++; // (2 or 3?)
prev_piv = max;
if (!prev_val || mt_will_coalesce(prev_val))
{
enum maple_type mas_type = mte_node_type(mas->node);
struct maple_node space;
- struct maple_node* mn = NULL;
+ struct maple_node *mn = NULL;
unsigned long wr_pivot = mas->min - 1;
unsigned char coalesce;
unsigned char data_end = mas_data_end(mas, mas_type, &wr_pivot,
no_entry:
mas->node = MAS_NONE;
- return;
}
/** Private
* mas_prev_slot() - Find the previous leaf slot, regardless of having an
no_entry:
mas->node = MAS_NONE;
- return;
}
/** Private
// last location in the search.
// mas->max and mas->min is the range of the gap.
// mas->index and mas->last are currently set to the search range.
-
+
// Trim the upper limit to the max.
if (gap_max > range_max)
gap_max = range_max;
mas->last = gap_max;
mas->index = mas->last - size + 1;
- return;
}
static void _mas_empty_or_single_unmapped_area(struct ma_state *mas,
unsigned long min, unsigned long max, unsigned long size,
mas->index = max - size + 1;
mas->index = max;
-
-
}
static inline int _mas_get_unmapped_area(struct ma_state *mas, unsigned long min,
unsigned long max, unsigned long size, bool forward)