@@ -1964,27 +1964,13 @@ static inline void mas_mab_cp(struct ma_state *mas, unsigned char mas_start,
1964
1964
1965
1965
/*
1966
1966
* mas_leaf_set_meta() - Set the metadata of a leaf if possible.
1967
- * @mas: The maple state
1968
1967
* @node: The maple node
1969
- * @pivots: pointer to the maple node pivots
1970
1968
* @mt: The maple type
1971
- * @end: The assumed end
1972
- *
1973
- * Note, end may be incremented within this function but not modified at the
1974
- * source. This is fine since the metadata is the last thing to be stored in a
1975
- * node during a write.
1969
+ * @end: The node end
1976
1970
*/
1977
- static inline void mas_leaf_set_meta (struct ma_state * mas ,
1978
- struct maple_node * node , unsigned long * pivots ,
1971
+ static inline void mas_leaf_set_meta (struct maple_node * node ,
1979
1972
enum maple_type mt , unsigned char end )
1980
1973
{
1981
- /* There is no room for metadata already */
1982
- if (mt_pivots [mt ] <= end )
1983
- return ;
1984
-
1985
- if (pivots [end ] && pivots [end ] < mas -> max )
1986
- end ++ ;
1987
-
1988
1974
if (end < mt_slots [mt ] - 1 )
1989
1975
ma_set_meta (node , mt , 0 , end );
1990
1976
}
@@ -2041,7 +2027,7 @@ static inline void mab_mas_cp(struct maple_big_node *b_node,
2041
2027
2042
2028
ma_set_meta (node , mt , offset , end );
2043
2029
} else {
2044
- mas_leaf_set_meta (mas , node , pivots , mt , end );
2030
+ mas_leaf_set_meta (node , mt , end );
2045
2031
}
2046
2032
}
2047
2033
@@ -3962,7 +3948,7 @@ static inline bool mas_wr_node_store(struct ma_wr_state *wr_mas,
3962
3948
dst_pivots [new_end ] = mas -> max ;
3963
3949
3964
3950
done :
3965
- mas_leaf_set_meta (mas , newnode , dst_pivots , maple_leaf_64 , new_end );
3951
+ mas_leaf_set_meta (newnode , maple_leaf_64 , new_end );
3966
3952
if (in_rcu ) {
3967
3953
struct maple_enode * old_enode = mas -> node ;
3968
3954
0 commit comments