Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/md/persistent-data/
Ddm-btree-remove.c88 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy() local
99 if (nr_left + shift > le32_to_cpu(left->header.max_entries)) { in node_copy()
104 memcpy(key_ptr(left, nr_left), in node_copy()
107 memcpy(value_ptr(left, nr_left), in node_copy()
117 key_ptr(left, nr_left - shift), in node_copy()
120 value_ptr(left, nr_left - shift), in node_copy()
195 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in shift() local
205 if (nr_left - count > max_entries) { in shift()
230 left->header.nr_entries = cpu_to_le32(nr_left - count); in shift()
242 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in __rebalance2() local
[all …]
Ddm-btree.c555 unsigned int nr_left = le32_to_cpu(left->header.nr_entries); in redistribute2() local
557 unsigned int total = nr_left + nr_right; in redistribute2()
561 if (nr_left < target_left) { in redistribute2()
562 unsigned int delta = target_left - nr_left; in redistribute2()
564 copy_entries(left, nr_left, right, 0, delta); in redistribute2()
566 } else if (nr_left > target_left) { in redistribute2()
567 unsigned int delta = nr_left - target_left; in redistribute2()
585 unsigned int nr_left = le32_to_cpu(left->header.nr_entries); in redistribute3() local
592 total = nr_left + nr_right; in redistribute3()
597 if (nr_left < target_left) { in redistribute3()
[all …]
/linux-6.6.21/fs/btrfs/
Dctree.c2784 int nr_left = btrfs_header_nritems(left); in check_sibling_keys() local
2788 if (!nr_left || !nr_right) in check_sibling_keys()
2792 btrfs_node_key_to_cpu(left, &left_last, nr_left - 1); in check_sibling_keys()
2795 btrfs_item_key_to_cpu(left, &left_last, nr_left - 1); in check_sibling_keys()