Lines Matching refs:slots

356 						  path->slots[0]);  in overwrite_item()
375 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
402 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
450 path->slots[0]); in overwrite_item()
460 path->slots[0]); in overwrite_item()
628 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent()
667 path->slots[0]); in replay_one_extent()
945 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
949 path->slots[0], in backref_in_log()
957 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log()
1019 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in __add_inode_ref()
1020 ptr_end = ptr + btrfs_item_size_nr(leaf, path->slots[0]); in __add_inode_ref()
1076 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in __add_inode_ref()
1077 base = btrfs_item_ptr_offset(leaf, path->slots[0]); in __add_inode_ref()
1231 ref_ptr = btrfs_item_ptr_offset(eb, path->slots[0]); in unlink_old_inode_refs()
1232 ref_end = ref_ptr + btrfs_item_size_nr(eb, path->slots[0]); in unlink_old_inode_refs()
1318 path->slots[0], parent_id, in btrfs_inode_ref_exists()
1321 ret = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], in btrfs_inode_ref_exists()
1539 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in count_inode_extrefs()
1540 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in count_inode_extrefs()
1582 if (path->slots[0] == 0) in count_inode_refs()
1584 path->slots[0]--; in count_inode_refs()
1588 path->slots[0]); in count_inode_refs()
1592 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in count_inode_refs()
1594 path->slots[0]); in count_inode_refs()
1607 if (path->slots[0] > 0) { in count_inode_refs()
1608 path->slots[0]--; in count_inode_refs()
1694 if (path->slots[0] == 0) in fixup_inode_link_counts()
1696 path->slots[0]--; in fixup_inode_link_counts()
1699 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fixup_inode_link_counts()
2081 if (path->slots[0] == 0) in find_dir_range()
2083 path->slots[0]--; in find_dir_range()
2086 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2092 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2106 path->slots[0]++; in find_dir_range()
2107 if (path->slots[0] >= nritems) { in find_dir_range()
2113 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2119 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2158 slot = path->slots[0]; in check_item_in_log()
2263 for (i = path->slots[0]; i < nritems; i++) { in replay_xattr_deletes()
2398 if (path->slots[0] >= nritems) { in replay_dir_deletes()
2406 path->slots[0]); in replay_dir_deletes()
2618 if (path->slots[*level] >= in walk_down_log_tree()
2622 bytenr = btrfs_node_blockptr(cur, path->slots[*level]); in walk_down_log_tree()
2623 ptr_gen = btrfs_node_ptr_generation(cur, path->slots[*level]); in walk_down_log_tree()
2624 btrfs_node_key_to_cpu(cur, &first_key, path->slots[*level]); in walk_down_log_tree()
2642 path->slots[*level]++; in walk_down_log_tree()
2686 path->slots[*level] = 0; in walk_down_log_tree()
2692 path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); in walk_down_log_tree()
2710 slot = path->slots[i]; in walk_up_log_tree()
2712 path->slots[i]++; in walk_up_log_tree()
2785 path->slots[level] = 0; in walk_log_tree()
3342 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_del_dir_entries_in_log()
3428 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in insert_dir_log_key()
3491 path->slots[0]); in log_dir_items()
3502 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3506 path->nodes[0], path->slots[0], in log_dir_items()
3529 for (i = path->slots[0]; i < nritems; i++) { in log_dir_items()
3574 path->slots[0] = nritems; in log_dir_items()
3588 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3595 path->nodes[0], path->slots[0], in log_dir_items()
3691 if (path->slots[0] == 0) in drop_objectid_items()
3694 path->slots[0]--; in drop_objectid_items()
3696 path->slots[0]); in drop_objectid_items()
3707 path->slots[0] - start_slot + 1); in drop_objectid_items()
3789 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
3846 for (i = 0; i < nr; i++, dst_path->slots[0]++) { in copy_items()
3848 dst_path->slots[0]); in copy_items()
3857 dst_path->slots[0], in copy_items()
3974 if (src_path->slots[0]) in copy_items()
3975 src_path->slots[0]--; in copy_items()
3977 btrfs_item_key_to_cpu(src, &key, src_path->slots[0]); in copy_items()
3981 extent = btrfs_item_ptr(src, src_path->slots[0], in copy_items()
4015 i = src_path->slots[0]; in copy_items()
4087 src_path->slots[0]); in copy_items()
4208 fi = btrfs_item_ptr(leaf, path->slots[0], in log_one_extent()
4289 int slot = path->slots[0]; in btrfs_log_prealloc_extents()
4316 path->slots[0]++; in btrfs_log_prealloc_extents()
4338 path->slots[0]++; in btrfs_log_prealloc_extents()
4470 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in logged_inode_size()
4509 int slot = path->slots[0]; in btrfs_log_all_xattrs()
4541 path->slots[0]++; in btrfs_log_all_xattrs()
4610 ASSERT(path->slots[0] > 0); in btrfs_log_trailing_hole()
4611 path->slots[0]--; in btrfs_log_trailing_hole()
4613 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_log_trailing_hole()
4630 extent = btrfs_item_ptr(leaf, path->slots[0], in btrfs_log_trailing_hole()
4976 path->slots[0], &min_key, inode, in btrfs_log_inode()
4990 ins_start_slot = path->slots[0]; in btrfs_log_inode()
5060 if (ins_nr && ins_start_slot + ins_nr == path->slots[0]) { in btrfs_log_inode()
5064 ins_start_slot = path->slots[0]; in btrfs_log_inode()
5082 ins_start_slot = path->slots[0]; in btrfs_log_inode()
5086 path->slots[0]++; in btrfs_log_inode()
5087 if (path->slots[0] < nritems) { in btrfs_log_inode()
5089 path->slots[0]); in btrfs_log_inode()
5416 for (i = path->slots[0]; i < nritems; i++) { in log_new_dir_dentries()
5522 int slot = path->slots[0]; in btrfs_log_all_parents()
5585 path->slots[0]++; in btrfs_log_all_parents()
5835 if (path->slots[0] == 0) in btrfs_recover_log_trees()
5837 path->slots[0]--; in btrfs_recover_log_trees()
5840 path->slots[0]); in btrfs_recover_log_trees()