Home
last modified time | relevance | path

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

/linux-6.1.9/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 nr_left = le32_to_cpu(left->header.nr_entries); in redistribute2() local
553 unsigned total = nr_left + nr_right; in redistribute2()
557 if (nr_left < target_left) { in redistribute2()
558 unsigned 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 delta = nr_left - target_left; in redistribute2()
579 unsigned 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 …]
/linux-6.1.9/fs/btrfs/
Dctree.c2506 int nr_left = btrfs_header_nritems(left); in check_sibling_keys() local
2510 if (!nr_left || !nr_right) in check_sibling_keys()
2514 btrfs_node_key_to_cpu(left, &left_last, nr_left - 1); in check_sibling_keys()
2517 btrfs_item_key_to_cpu(left, &left_last, nr_left - 1); in check_sibling_keys()