/*
  * mas_leaf_set_meta() - Set the metadata of a leaf if possible.
- * @mas: The maple state
  * @node: The maple node
- * @pivots: pointer to the maple node pivots
  * @mt: The maple type
- * @end: The assumed end
- *
- * Note, end may be incremented within this function but not modified at the
- * source.  This is fine since the metadata is the last thing to be stored in a
- * node during a write.
+ * @end: The node end
  */
-static inline void mas_leaf_set_meta(struct ma_state *mas,
-               struct maple_node *node, unsigned long *pivots,
+static inline void mas_leaf_set_meta(struct maple_node *node,
                enum maple_type mt, unsigned char end)
 {
-       /* There is no room for metadata already */
-       if (mt_pivots[mt] <= end)
-               return;
-
-       if (pivots[end] && pivots[end] < mas->max)
-               end++;
-
        if (end < mt_slots[mt] - 1)
                ma_set_meta(node, mt, 0, end);
 }
 
                ma_set_meta(node, mt, offset, end);
        } else {
-               mas_leaf_set_meta(mas, node, pivots, mt, end);
+               mas_leaf_set_meta(node, mt, end);
        }
 }
 
                dst_pivots[new_end] = mas->max;
 
 done:
-       mas_leaf_set_meta(mas, newnode, dst_pivots, maple_leaf_64, new_end);
+       mas_leaf_set_meta(newnode, maple_leaf_64, new_end);
        if (in_rcu) {
                struct maple_enode *old_enode = mas->node;