Lines Matching refs:slots
415 path->slots[0]); in overwrite_item()
434 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
461 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
509 path->slots[0]); in overwrite_item()
518 path->slots[0]); in overwrite_item()
678 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent()
720 path->slots[0]); in replay_one_extent()
1033 path->slots[0], in backref_in_log()
1038 path->slots[0], in backref_in_log()
1086 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in __add_inode_ref()
1087 ptr_end = ptr + btrfs_item_size_nr(leaf, path->slots[0]); in __add_inode_ref()
1145 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in __add_inode_ref()
1146 base = btrfs_item_ptr_offset(leaf, path->slots[0]); in __add_inode_ref()
1304 ref_ptr = btrfs_item_ptr_offset(eb, path->slots[0]); in unlink_old_inode_refs()
1305 ref_end = ref_ptr + btrfs_item_size_nr(eb, path->slots[0]); in unlink_old_inode_refs()
1391 path->slots[0], parent_id, name, namelen); in btrfs_inode_ref_exists()
1393 ret = !!btrfs_find_name_in_backref(path->nodes[0], path->slots[0], in btrfs_inode_ref_exists()
1660 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in count_inode_extrefs()
1661 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in count_inode_extrefs()
1703 if (path->slots[0] == 0) in count_inode_refs()
1705 path->slots[0]--; in count_inode_refs()
1709 path->slots[0]); in count_inode_refs()
1713 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in count_inode_refs()
1715 path->slots[0]); in count_inode_refs()
1728 if (path->slots[0] > 0) { in count_inode_refs()
1729 path->slots[0]--; in count_inode_refs()
1820 if (path->slots[0] == 0) in fixup_inode_link_counts()
1822 path->slots[0]--; in fixup_inode_link_counts()
1825 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fixup_inode_link_counts()
2208 if (path->slots[0] == 0) in find_dir_range()
2210 path->slots[0]--; in find_dir_range()
2213 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2219 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2233 path->slots[0]++; in find_dir_range()
2234 if (path->slots[0] >= nritems) { in find_dir_range()
2240 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2246 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2288 slot = path->slots[0]; in check_item_in_log()
2370 for (i = path->slots[0]; i < nritems; i++) { in replay_xattr_deletes()
2506 if (path->slots[0] >= nritems) { in replay_dir_deletes()
2514 path->slots[0]); in replay_dir_deletes()
2752 if (path->slots[*level] >= in walk_down_log_tree()
2756 bytenr = btrfs_node_blockptr(cur, path->slots[*level]); in walk_down_log_tree()
2757 ptr_gen = btrfs_node_ptr_generation(cur, path->slots[*level]); in walk_down_log_tree()
2758 btrfs_node_key_to_cpu(cur, &first_key, path->slots[*level]); in walk_down_log_tree()
2775 path->slots[*level]++; in walk_down_log_tree()
2816 path->slots[*level] = 0; in walk_down_log_tree()
2819 path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); in walk_down_log_tree()
2836 slot = path->slots[i]; in walk_up_log_tree()
2838 path->slots[i]++; in walk_up_log_tree()
2905 path->slots[level] = 0; in walk_log_tree()
3634 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in insert_dir_log_key()
3697 path->slots[0]); in log_dir_items()
3708 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3712 path->nodes[0], path->slots[0], in log_dir_items()
3743 for (i = path->slots[0]; i < nritems; i++) { in log_dir_items()
3795 path->slots[0] = nritems; in log_dir_items()
3809 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3816 path->nodes[0], path->slots[0], in log_dir_items()
3912 if (path->slots[0] == 0) in drop_objectid_items()
3915 path->slots[0]--; in drop_objectid_items()
3917 path->slots[0]); in drop_objectid_items()
3929 path->slots[0] - start_slot + 1); in drop_objectid_items()
4045 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
4142 for (i = 0; i < nr; i++, dst_path->slots[0]++) { in copy_items()
4144 dst_path->slots[0]); in copy_items()
4150 dst_path->slots[0], in copy_items()
4388 fi = btrfs_item_ptr(leaf, path->slots[0], in log_one_extent()
4478 slot = path->slots[0]; in btrfs_log_prealloc_extents()
4498 slot = path->slots[0]; in btrfs_log_prealloc_extents()
4524 path->slots[0]++; in btrfs_log_prealloc_extents()
4546 path->slots[0]++; in btrfs_log_prealloc_extents()
4687 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in logged_inode_size()
4743 int slot = path->slots[0]; in btrfs_log_all_xattrs()
4770 path->slots[0]++; in btrfs_log_all_xattrs()
4822 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in btrfs_log_holes()
4833 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_log_holes()
4870 path->slots[0]++; in btrfs_log_holes()
5155 int slot = path->slots[0]; in log_conflicting_inodes()
5194 path->slots[0]++; in log_conflicting_inodes()
5254 path->slots[0], min_key, inode, in copy_inode_items_to_log()
5264 ins_start_slot = path->slots[0]; in copy_inode_items_to_log()
5293 if (ins_nr && ins_start_slot + ins_nr == path->slots[0]) { in copy_inode_items_to_log()
5297 ins_start_slot = path->slots[0]; in copy_inode_items_to_log()
5307 ins_start_slot = path->slots[0]; in copy_inode_items_to_log()
5309 path->slots[0]++; in copy_inode_items_to_log()
5310 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in copy_inode_items_to_log()
5312 path->slots[0]); in copy_inode_items_to_log()
5794 for (i = path->slots[0]; i < nritems; i++) { in log_new_dir_dentries()
5897 int slot = path->slots[0]; in btrfs_log_all_parents()
5986 path->slots[0]++; in btrfs_log_all_parents()
6001 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in log_new_ancestors()
6006 int slot = path->slots[0]; in log_new_ancestors()
6040 slot = path->slots[0]; in log_new_ancestors()
6048 slot = path->slots[0]; in log_new_ancestors()
6127 path->slots[0]++; in log_all_new_ancestors()
6131 int slot = path->slots[0]; in log_all_new_ancestors()
6385 if (path->slots[0] == 0) in btrfs_recover_log_trees()
6387 path->slots[0]--; in btrfs_recover_log_trees()
6390 path->slots[0]); in btrfs_recover_log_trees()