Lines Matching refs:nodes

427 	dst_eb = path->nodes[0];  in overwrite_item()
516 dst_eb = path->nodes[0]; in overwrite_item()
681 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in replay_one_extent()
682 read_extent_buffer(path->nodes[0], &existing, ptr, sizeof(existing)); in replay_one_extent()
718 dest_offset = btrfs_item_ptr_offset(path->nodes[0], in replay_one_extent()
720 copy_extent_buffer(path->nodes[0], eb, dest_offset, in replay_one_extent()
929 leaf = path->nodes[0]; in drop_one_dir_item()
979 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
992 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
1032 ret = !!btrfs_find_name_in_ext_backref(path->nodes[0], in backref_in_log()
1036 ret = !!btrfs_find_name_in_backref(path->nodes[0], in backref_in_log()
1051 struct extent_buffer *leaf = path->nodes[0]; in unlink_refs_not_in_log()
1105 struct extent_buffer *leaf = path->nodes[0]; in unlink_extrefs_not_in_log()
1314 eb = path->nodes[0]; in unlink_old_inode_refs()
1555 leaf = path->nodes[0]; in count_inode_extrefs()
1603 btrfs_item_key_to_cpu(path->nodes[0], &key, in count_inode_refs()
1608 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in count_inode_refs()
1609 ptr_end = ptr + btrfs_item_size(path->nodes[0], in count_inode_refs()
1615 name_len = btrfs_inode_ref_name_len(path->nodes[0], in count_inode_refs()
1721 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fixup_inode_link_counts()
1839 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in delete_conflicting_dir_entry()
1844 btrfs_dir_flags(path->nodes[0], dst_di) == log_flags) in delete_conflicting_dir_entry()
2097 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2103 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2105 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
2116 nritems = btrfs_header_nritems(path->nodes[0]); in find_dir_range()
2124 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2130 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2132 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
2170 eb = path->nodes[0]; in check_item_in_log()
2247 nritems = btrfs_header_nritems(path->nodes[0]); in replay_xattr_deletes()
2255 btrfs_item_key_to_cpu(path->nodes[0], &key, i); in replay_xattr_deletes()
2261 di = btrfs_item_ptr(path->nodes[0], i, struct btrfs_dir_item); in replay_xattr_deletes()
2262 total_size = btrfs_item_size(path->nodes[0], i); in replay_xattr_deletes()
2265 u16 name_len = btrfs_dir_name_len(path->nodes[0], di); in replay_xattr_deletes()
2266 u16 data_len = btrfs_dir_data_len(path->nodes[0], di); in replay_xattr_deletes()
2275 read_extent_buffer(path->nodes[0], name, in replay_xattr_deletes()
2386 nritems = btrfs_header_nritems(path->nodes[0]); in replay_dir_deletes()
2394 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
2659 cur = path->nodes[*level]; in walk_down_log_tree()
2711 if (path->nodes[*level-1]) in walk_down_log_tree()
2712 free_extent_buffer(path->nodes[*level-1]); in walk_down_log_tree()
2713 path->nodes[*level-1] = next; in walk_down_log_tree()
2718 path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); in walk_down_log_tree()
2733 for (i = *level; i < BTRFS_MAX_LEVEL - 1 && path->nodes[i]; i++) { in walk_up_log_tree()
2735 if (slot + 1 < btrfs_header_nritems(path->nodes[i])) { in walk_up_log_tree()
2741 ret = wc->process_func(root, path->nodes[*level], wc, in walk_up_log_tree()
2742 btrfs_header_generation(path->nodes[*level]), in walk_up_log_tree()
2748 ret = clean_log_buffer(trans, path->nodes[*level]); in walk_up_log_tree()
2752 free_extent_buffer(path->nodes[*level]); in walk_up_log_tree()
2753 path->nodes[*level] = NULL; in walk_up_log_tree()
2780 path->nodes[level] = log->node; in walk_log_tree()
2803 if (path->nodes[orig_level]) { in walk_log_tree()
2804 ret = wc->process_func(log, path->nodes[orig_level], wc, in walk_log_tree()
2805 btrfs_header_generation(path->nodes[orig_level]), in walk_log_tree()
2810 ret = clean_log_buffer(trans, path->nodes[orig_level]); in walk_log_tree()
3616 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in insert_dir_log_key()
3619 const u64 curr_end = btrfs_dir_log_end(path->nodes[0], item); in insert_dir_log_key()
3629 btrfs_set_dir_log_end(path->nodes[0], item, last_offset); in insert_dir_log_key()
3690 dst = dst_path->nodes[0]; in flush_dir_items_batch()
3731 copy_extent_buffer_full(ctx->scratch_eb, path->nodes[0]); in clone_leaf()
3733 ctx->scratch_eb = btrfs_clone_extent_buffer(path->nodes[0]); in clone_leaf()
3739 path->nodes[0] = ctx->scratch_eb; in clone_leaf()
3759 const int nritems = btrfs_header_nritems(path->nodes[0]); in process_dir_items_leaf()
3775 src = path->nodes[0]; in process_dir_items_leaf()
3912 btrfs_item_key_to_cpu(path->nodes[0], &tmp, in log_dir_items()
3928 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3984 path->slots[0] = btrfs_header_nritems(path->nodes[0]); in log_dir_items()
3998 btrfs_item_key_to_cpu(path->nodes[0], &min_key, path->slots[0]); in log_dir_items()
4003 if (btrfs_header_generation(path->nodes[0]) != trans->transid) { in log_dir_items()
4101 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0] - 1); in update_last_dir_index_offset()
4184 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in drop_inode_items()
4192 ret = btrfs_bin_search(path->nodes[0], 0, &found_key, &start_slot); in drop_inode_items()
4323 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
4325 fill_inode_item(trans, path->nodes[0], inode_item, &inode->vfs_inode, in log_inode_item()
4428 src = src_path->nodes[0]; in copy_items()
4580 dst_offset = btrfs_item_ptr_offset(dst_path->nodes[0], dst_slot); in copy_items()
4586 inode_item = btrfs_item_ptr(dst_path->nodes[0], dst_slot, in copy_items()
4588 fill_inode_item(trans, dst_path->nodes[0], inode_item, in copy_items()
4593 copy_extent_buffer(dst_path->nodes[0], src, dst_offset, in copy_items()
4805 leaf = path->nodes[0]; in log_one_extent()
4866 leaf = path->nodes[0]; in btrfs_log_prealloc_extents()
4886 leaf = path->nodes[0]; in btrfs_log_prealloc_extents()
5073 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in logged_inode_size()
5075 *size_ret = btrfs_inode_size(path->nodes[0], item); in logged_inode_size()
5131 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_xattrs()
5207 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_holes()
5209 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in btrfs_log_holes()
5217 leaf = path->nodes[0]; in btrfs_log_holes()
5252 leaf = path->nodes[0]; in btrfs_log_holes()
5384 btrfs_dir_item_key_to_cpu(search_path->nodes[0], in btrfs_check_ref_name_override()
5529 struct extent_buffer *leaf = path->nodes[0]; in log_new_dir_dentries()
5674 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in conflicting_inode_is_dir()
5676 if (S_ISDIR(btrfs_inode_mode(path->nodes[0], item))) in conflicting_inode_is_dir()
5954 ret = btrfs_check_ref_name_override(path->nodes[0], in copy_inode_items_to_log()
6012 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in copy_inode_items_to_log()
6013 btrfs_item_key_to_cpu(path->nodes[0], min_key, in copy_inode_items_to_log()
6078 data_ptr = btrfs_item_ptr(path->nodes[0], path->slots[0], char); in insert_delayed_items_batch()
6079 write_extent_buffer(path->nodes[0], &curr->data, in insert_delayed_items_batch()
6237 struct extent_buffer *leaf = path->nodes[0]; in batch_delete_dir_index_items()
6810 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_parents()
6911 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in log_new_ancestors()
6947 leaf = path->nodes[0]; in log_new_ancestors()
6955 leaf = path->nodes[0]; in log_new_ancestors()
7038 struct extent_buffer *leaf = path->nodes[0]; in log_all_new_ancestors()
7293 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in btrfs_recover_log_trees()