]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rename alloc to is_alloc
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 10 Apr 2025 19:12:52 +0000 (15:12 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 10 Apr 2025 19:12:52 +0000 (15:12 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index 6084469c90239caed4242140e61efa67f3ace2ed..270d3a76554bc867c7aad2f1e51565bf7762cbda 100644 (file)
@@ -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 */