Home
last modified time | relevance | path

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

/drivers/md/persistent-data/
Ddm-btree-remove.c87 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy() local
97 if (nr_left + shift > le32_to_cpu(left->header.max_entries)) { in node_copy()
102 memcpy(key_ptr(left, nr_left), in node_copy()
105 memcpy(value_ptr(left, nr_left), in node_copy()
115 key_ptr(left, nr_left - shift), in node_copy()
118 value_ptr(left, nr_left - shift), in node_copy()
192 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in shift() local
202 if (nr_left - count > max_entries) { in shift()
227 left->header.nr_entries = cpu_to_le32(nr_left - count); in shift()
239 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in __rebalance2() local
[all …]
Ddm-btree.c551 unsigned int nr_left = le32_to_cpu(left->header.nr_entries); in redistribute2() local
553 unsigned int total = nr_left + nr_right; in redistribute2()
557 if (nr_left < target_left) { in redistribute2()
558 unsigned int delta = target_left - nr_left; in redistribute2()
559 copy_entries(left, nr_left, right, 0, delta); in redistribute2()
561 } else if (nr_left > target_left) { in redistribute2()
562 unsigned int delta = nr_left - target_left; in redistribute2()
579 unsigned int nr_left = le32_to_cpu(left->header.nr_entries); in redistribute3() local
586 total = nr_left + nr_right; in redistribute3()
591 if (nr_left < target_left) { in redistribute3()
[all …]