From 63a46bf7bd0d9997cb1f1f8555360c4a039345b4 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Mon, 21 Sep 2020 10:12:42 -0400 Subject: [PATCH] maple_tree: Fix formatting of extend null Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index d3342ec10e3a..2742a0a54236 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -2836,8 +2836,7 @@ static inline bool mas_wr_walk(struct ma_state *mas, unsigned long *range_min, return ret; } -static inline void mas_extend_null(struct ma_state *l_mas, - struct ma_state *r_mas) +static inline void mas_extend_null(struct ma_state *l_mas, struct ma_state *r_mas) { unsigned char l_slot = mas_offset(l_mas); unsigned char r_slot = mas_offset(r_mas); @@ -2865,14 +2864,15 @@ static inline void mas_extend_null(struct ma_state *l_mas, slots = ma_slots(mte_to_node(r_mas->node), mte_node_type(r_mas->node)); - if (!slots[r_slot]) { + if (!mas_slot(r_mas, slots, r_slot)) { if (r_mas->last < range_max) r_mas->last = range_max; cp_r_slot++; } if (r_mas->last == range_max && - r_mas->last < r_mas->max && !slots[r_slot + 1]) { + r_mas->last < r_mas->max && + !mas_slot(r_mas, slots, r_slot + 1)) { r_mas->last = mas_safe_pivot(r_mas, r_slot + 1); cp_r_slot++; } -- 2.50.1