}
/*
- * mas_wr_rebalance_calc() - Try to calculate a rebalance that will work
+ * rebalance_calc() - Try to calculate a rebalance that will work
* @data_size: The total data to be written
* @mt: The maple node types splitting the data
*
* Returns: 0 on failure, the split location otherwise.
*/
static inline
-unsigned char mas_wr_rebalance_calc(unsigned char data_size,
+unsigned char rebalance_calc(unsigned char data_size,
enum maple_type mt)
{
unsigned char space, split;
mas_descend(tmp_mas);
mni_mas_init(src2, tmp_mas);
mni_set_end(src2);
- sd->split = mas_wr_rebalance_calc(src2->end + sd->new_end, src2->type);
+ sd->split = rebalance_calc(src2->end + sd->new_end, src2->type);
if (!sd->split) {
mas_ascend(tmp_mas);
tmp_mas->offset--;
mas_descend(tmp_mas);
mni_mas_init(src2, tmp_mas);
mni_set_end(src2);
- sd->split = mas_wr_rebalance_calc(src2->end + sd->new_end, src2->type);
+ sd->split = rebalance_calc(src2->end + sd->new_end, src2->type);
if (!sd->split) {
mas_ascend(tmp_mas);
tmp_mas->offset++;