Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/md/persistent-data/
Ddm-btree.c552 unsigned target_left = total / 2; in redistribute2() local
553 unsigned target_right = total - target_left; in redistribute2()
555 if (nr_left < target_left) { in redistribute2()
556 unsigned delta = target_left - nr_left; in redistribute2()
559 } else if (nr_left > target_left) { in redistribute2()
560 unsigned delta = nr_left - target_left; in redistribute2()
563 copy_entries(right, 0, left, target_left, delta); in redistribute2()
566 left->header.nr_entries = cpu_to_le32(target_left); in redistribute2()
580 unsigned total, target_left, target_center, target_right; in redistribute3() local
585 target_left = total / 3; in redistribute3()
[all …]
Ddm-btree-remove.c231 unsigned target_left = (nr_left + nr_right) / 2; in __rebalance2() local
232 shift(left, right, nr_left - target_left); in __rebalance2()
310 unsigned target_left = target_right + remainder; in redistribute3() local
312 BUG_ON(target_left > max_entries); in redistribute3()
316 s = nr_left - target_left; in redistribute3()
340 shift(left, center, nr_left - target_left); in redistribute3()