]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rename ma_cp_to to cp_dst_to
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 16 Sep 2025 18:31:04 +0000 (14:31 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 16 Sep 2025 18:31:04 +0000 (14:31 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index f53a3ecc015c8003dbe5ecdcfc472810acbf84ca..3a75f5db98430a3ce1bf95bc071bea83a0c5f9c2 100644 (file)
@@ -3322,7 +3322,7 @@ void cp_data_write(struct maple_copy *cp, struct ma_state *mas)
 }
 
 
-static inline void ma_cp_to_slots(struct maple_copy *cp, unsigned long min,
+static inline void cp_dst_to_slots(struct maple_copy *cp, unsigned long min,
                struct ma_state *mas)
 {
        unsigned char d;
@@ -3332,7 +3332,6 @@ static inline void ma_cp_to_slots(struct maple_copy *cp, unsigned long min,
                enum maple_type mt = cp->dst[d].mt;
                unsigned long max = cp->dst[d].max;
 
-
                cp->slot[d] = mt_mk_node(mn, mt);
                cp->pivot[d] = max;
                if (mt_is_alloc(mas->tree)) {
@@ -3391,7 +3390,7 @@ static bool spanning_ascend(struct maple_copy *cp, struct ma_state *mas,
                        *r_wr_mas->mas = *sib;
        }
 
-       ma_cp_to_slots(cp, l_wr_mas->mas->min, mas);
+       cp_dst_to_slots(cp, l_wr_mas->mas->min, mas);
        cp->end = cp->d_count - 1;
        cp->min = l_wr_mas->mas->min;
        cp->max = r_wr_mas->mas->max;
@@ -3472,7 +3471,7 @@ static inline bool rebalance_ascend(struct maple_copy *cp,
                r = mas;
        }
 
-       ma_cp_to_slots(cp, min, mas);
+       cp_dst_to_slots(cp, min, mas);
        cp->end = cp->d_count - 1;
        cp->min = l->min;
        cp->max = r->max;