From: Liam R. Howlett <Liam.Howlett@oracle.com> Date: Thu, 10 Apr 2025 19:12:52 +0000 (-0400) Subject: rename alloc to is_alloc X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1da332a05456be502f2ae36c0a5fe53817412c67;p=users%2Fjedix%2Flinux-maple.git rename alloc to is_alloc Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 6084469c9023..270d3a76554b 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3131,7 +3131,7 @@ struct ma_node_info { unsigned char end; unsigned char insert_off; unsigned char offset; /* Operating position */ - bool alloc; + bool is_alloc; }; struct ma_node_state { @@ -3247,7 +3247,7 @@ void _mni_node_init(struct ma_node_info *mni, struct maple_node *node, mni->slots = ma_slots(node, type); mni->pivots = ma_pivots(node, type); mni->gaps = ma_gaps(node, type); - mni->alloc = false; + mni->is_alloc = false; } static inline @@ -3438,7 +3438,7 @@ void mni_finalise(struct ma_node_info *p) unsigned long *pivs; void **slots; - if (!p->alloc) + if (!p->is_alloc) goto finalise_leaf; i = 0; offset = p->offset - 2; @@ -4249,7 +4249,7 @@ static void mas_wr_split(struct ma_wr_state *wr_mas) mni_node_init(&right, mas_pop_node(mas), wr_mas->type); if (mt_is_alloc(mas->tree)) - right.alloc = left.alloc = true; + right.is_alloc = left.is_alloc = true; mns_node_part_leaf_init(&part, wr_mas, &src); sd.new_end = mas->end + part.size; /* - skip + 1 */