Searched refs:nr_right (Results 1 – 3 of 3) sorted by relevance
176 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in shift() local182 BUG_ON(nr_right + count > max_entries); in shift()196 right->header.nr_entries = cpu_to_le32(nr_right + count); in shift()205 uint32_t nr_right = le32_to_cpu(right->header.nr_entries); in __rebalance2() local214 if (nr_left + nr_right < threshold) { in __rebalance2()218 node_copy(left, right, -nr_right); in __rebalance2()219 left->header.nr_entries = cpu_to_le32(nr_left + nr_right); in __rebalance2()231 unsigned target_left = (nr_left + nr_right) / 2; in __rebalance2()272 uint32_t nr_left, uint32_t nr_center, uint32_t nr_right) in delete_center_node() argument283 BUG_ON((nr_right + shift) > max_entries); in delete_center_node()[all …]
550 unsigned nr_right = le32_to_cpu(right->header.nr_entries); in redistribute2() local551 unsigned total = nr_left + nr_right; in redistribute2()561 if (nr_right) in redistribute2()579 unsigned nr_right = le32_to_cpu(right->header.nr_entries); in redistribute3() local584 total = nr_left + nr_right; in redistribute3()593 shift_down(right, nr_right - target_right); in redistribute3()599 shift_down(right, nr_right - target_right); in redistribute3()602 unsigned right_short = target_right - nr_right; in redistribute3()831 unsigned nr_left, nr_right; in btree_split_beneath() local865 nr_right = le32_to_cpu(pn->header.nr_entries) - nr_left; in btree_split_beneath()[all …]
2235 int nr_right = btrfs_header_nritems(right); in check_sibling_keys() local2238 if (!nr_left || !nr_right) in check_sibling_keys()