Lines Matching refs:max_entries
75 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift()
97 if (nr_left + shift > le32_to_cpu(left->header.max_entries)) { in node_copy()
109 if (shift > le32_to_cpu(right->header.max_entries)) { in node_copy()
149 return le32_to_cpu(n->header.max_entries) / 3; in merge_threshold()
194 uint32_t max_entries = le32_to_cpu(left->header.max_entries); in shift() local
195 uint32_t r_max_entries = le32_to_cpu(right->header.max_entries); in shift()
197 if (max_entries != r_max_entries) { in shift()
202 if (nr_left - count > max_entries) { in shift()
207 if (nr_right + count > max_entries) { in shift()
312 uint32_t max_entries = le32_to_cpu(left->header.max_entries); in delete_center_node() local
313 unsigned shift = min(max_entries - nr_left, nr_center); in delete_center_node()
315 if (nr_left + shift > max_entries) { in delete_center_node()
326 if ((nr_right + shift) > max_entries) { in delete_center_node()
353 uint32_t max_entries = le32_to_cpu(left->header.max_entries); in redistribute3() local
359 BUG_ON(target_left > max_entries); in redistribute3()
360 BUG_ON(target_right > max_entries); in redistribute3()
427 if ((left->header.max_entries != center->header.max_entries) || in __rebalance3()
428 (center->header.max_entries != right->header.max_entries)) { in __rebalance3()