Home
last modified time | relevance | path

Searched refs:target_left (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/md/persistent-data/
Ddm-btree.c554 unsigned target_left = total / 2; in redistribute2() local
555 unsigned target_right = total - target_left; in redistribute2()
557 if (nr_left < target_left) { in redistribute2()
558 unsigned delta = target_left - nr_left; in redistribute2()
561 } else if (nr_left > target_left) { in redistribute2()
562 unsigned delta = nr_left - target_left; in redistribute2()
565 copy_entries(right, 0, left, target_left, delta); in redistribute2()
568 left->header.nr_entries = cpu_to_le32(target_left); in redistribute2()
582 unsigned total, target_left, target_center, target_right; in redistribute3() local
587 target_left = total / 3; in redistribute3()
[all …]
Ddm-btree-remove.c266 unsigned target_left = (nr_left + nr_right) / 2; in __rebalance2() local
267 ret = shift(left, right, nr_left - target_left); in __rebalance2()
357 unsigned target_left = target_right + remainder; in redistribute3() local
359 BUG_ON(target_left > max_entries); in redistribute3()
363 s = nr_left - target_left; in redistribute3()
404 ret = shift(left, center, nr_left - target_left); in redistribute3()