Lines Matching refs:slots
743 ASSERT(path1->slots[0]); in build_backref_tree()
745 path1->slots[0]--; in build_backref_tree()
773 if (path1->slots[0] >= btrfs_header_nritems(eb)) { in build_backref_tree()
784 btrfs_item_key_to_cpu(eb, &key, path1->slots[0]); in build_backref_tree()
792 ret = find_inline_backref(eb, path1->slots[0], in build_backref_tree()
921 if (ret > 0 && path2->slots[level] > 0) in build_backref_tree()
922 path2->slots[level]--; in build_backref_tree()
925 if (btrfs_node_blockptr(eb, path2->slots[level]) != in build_backref_tree()
1025 path1->slots[0]++; in build_backref_tree()
1635 fi = btrfs_item_ptr(leaf, path->slots[0], in get_new_location()
1789 btrfs_node_key(path->nodes[level], &key2, path->slots[level]); in memcmp_node_keys()
1829 slot = path->slots[lowest_level]; in replace_path()
1878 path->slots[level]); in replace_path()
1880 path->slots[level]); in replace_path()
1931 path->slots[level]); in replace_path()
1955 path->nodes[level], path->slots[level], in replace_path()
1967 path->slots[level], old_bytenr); in replace_path()
1969 path->slots[level], old_ptr_gen); in replace_path()
2031 while (path->slots[i] + 1 < nritems) { in walk_up_reloc_tree()
2032 path->slots[i]++; in walk_up_reloc_tree()
2033 if (btrfs_node_ptr_generation(eb, path->slots[i]) <= in walk_up_reloc_tree()
2068 while (path->slots[i] < nritems) { in walk_down_reloc_tree()
2069 ptr_gen = btrfs_node_ptr_generation(eb, path->slots[i]); in walk_down_reloc_tree()
2072 path->slots[i]++; in walk_down_reloc_tree()
2074 if (path->slots[i] >= nritems) { in walk_down_reloc_tree()
2085 bytenr = btrfs_node_blockptr(eb, path->slots[i]); in walk_down_reloc_tree()
2086 btrfs_node_key_to_cpu(eb, &first_key, path->slots[i]); in walk_down_reloc_tree()
2097 path->slots[i - 1] = 0; in walk_down_reloc_tree()
2182 if (path->slots[level] + 1 < in find_next_key()
2185 path->slots[level] + 1); in find_next_key()
2292 path->slots[level] = 0; in merge_reloc_root()
2307 path->slots[level]); in merge_reloc_root()
2357 path->slots[level]); in merge_reloc_root()
2371 path->slots[level]); in merge_reloc_root()
2847 slot = path->slots[upper->level]; in do_relocation()
3447 item_size = btrfs_item_size_nr(eb, path->slots[0]); in add_tree_block()
3451 ei = btrfs_item_ptr(eb, path->slots[0], in add_tree_block()
3528 if (path->slots[0]) { in __add_tree_block()
3529 path->slots[0]--; in __add_tree_block()
3531 path->slots[0]); in __add_tree_block()
3714 path->slots[0] = nritems; in find_data_references()
3718 while (path->slots[0] >= nritems) { in find_data_references()
3740 path->slots[0] = nritems; in find_data_references()
3744 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in find_data_references()
3749 fi = btrfs_item_ptr(leaf, path->slots[0], in find_data_references()
3788 path->slots[0] = nritems; in find_data_references()
3790 path->slots[0]++; in find_data_references()
3818 ptr = btrfs_item_ptr_offset(eb, path->slots[0]); in add_data_references()
3819 end = ptr + btrfs_item_size_nr(eb, path->slots[0]); in add_data_references()
3838 eb->start, path->slots[0]); in add_data_references()
3851 if (path->slots[0] >= btrfs_header_nritems(eb)) { in add_data_references()
3862 btrfs_item_key_to_cpu(eb, &key, path->slots[0]); in add_data_references()
3870 dref = btrfs_item_ptr(eb, path->slots[0], in add_data_references()
3885 path->slots[0]++; in add_data_references()
3927 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in find_next_extent()
3934 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in find_next_extent()
3942 path->slots[0]++; in find_next_extent()
3948 path->slots[0]++; in find_next_extent()
3955 path->slots[0]++; in find_next_extent()
4110 ei = btrfs_item_ptr(path->nodes[0], path->slots[0], in relocate_block_group()
4112 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in relocate_block_group()
4244 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_inode_item); in __insert_orphan_inode()
4519 if (path->slots[0] == 0) in btrfs_recover_relocation()
4521 path->slots[0]--; in btrfs_recover_relocation()
4524 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_recover_relocation()