From: Liam R. Howlett Date: Tue, 16 Sep 2025 18:31:04 +0000 (-0400) Subject: rename ma_cp_to to cp_dst_to X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cfb9c3b2ae78d86967a29beb58f150e8cb278cfe;p=users%2Fjedix%2Flinux-maple.git rename ma_cp_to to cp_dst_to Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index f53a3ecc015c..3a75f5db9843 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -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;