Lines Matching refs:nodes
393 ASSERT(path->nodes[0] != NULL); in do_overwrite_item()
399 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in do_overwrite_item()
402 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in do_overwrite_item()
412 u32 dst_size = btrfs_item_size_nr(path->nodes[0], in do_overwrite_item()
432 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in do_overwrite_item()
433 read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, in do_overwrite_item()
459 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in do_overwrite_item()
461 nbytes = btrfs_inode_nbytes(path->nodes[0], item); in do_overwrite_item()
506 found_size = btrfs_item_size_nr(path->nodes[0], in do_overwrite_item()
515 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], in do_overwrite_item()
535 struct extent_buffer *dst_eb = path->nodes[0]; in do_overwrite_item()
554 S_ISDIR(btrfs_inode_mode(path->nodes[0], dst_item))) { in do_overwrite_item()
556 saved_i_size = btrfs_inode_size(path->nodes[0], in do_overwrite_item()
561 copy_extent_buffer(path->nodes[0], eb, dst_ptr, in do_overwrite_item()
567 btrfs_set_inode_size(path->nodes[0], dst_item, saved_i_size); in do_overwrite_item()
574 if (btrfs_inode_generation(path->nodes[0], dst_item) == 0) { in do_overwrite_item()
575 btrfs_set_inode_generation(path->nodes[0], dst_item, in do_overwrite_item()
580 btrfs_mark_buffer_dirty(path->nodes[0]); in do_overwrite_item()
705 leaf = path->nodes[0]; in replay_one_extent()
747 dest_offset = btrfs_item_ptr_offset(path->nodes[0], in replay_one_extent()
749 copy_extent_buffer(path->nodes[0], eb, dest_offset, in replay_one_extent()
936 leaf = path->nodes[0]; in drop_one_dir_item()
991 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
1004 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
1044 ret = !!btrfs_find_name_in_ext_backref(path->nodes[0], in backref_in_log()
1049 ret = !!btrfs_find_name_in_backref(path->nodes[0], in backref_in_log()
1086 leaf = path->nodes[0]; in __add_inode_ref()
1156 leaf = path->nodes[0]; in __add_inode_ref()
1319 eb = path->nodes[0]; in unlink_old_inode_refs()
1406 ret = !!btrfs_find_name_in_ext_backref(path->nodes[0], in btrfs_inode_ref_exists()
1409 ret = !!btrfs_find_name_in_backref(path->nodes[0], path->slots[0], in btrfs_inode_ref_exists()
1448 btrfs_dir_item_key_to_cpu(path->nodes[0], dir_item, &key); in add_link()
1680 leaf = path->nodes[0]; in count_inode_extrefs()
1729 btrfs_item_key_to_cpu(path->nodes[0], &key, in count_inode_refs()
1734 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in count_inode_refs()
1735 ptr_end = ptr + btrfs_item_size_nr(path->nodes[0], in count_inode_refs()
1741 name_len = btrfs_inode_ref_name_len(path->nodes[0], in count_inode_refs()
1846 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fixup_inode_link_counts()
2037 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name()
2042 btrfs_dir_type(path->nodes[0], dst_di) == log_type) { in replay_one_name()
2234 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2240 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2242 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
2253 nritems = btrfs_header_nritems(path->nodes[0]); in find_dir_range()
2261 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
2267 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
2269 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
2305 eb = path->nodes[0]; in check_item_in_log()
2410 nritems = btrfs_header_nritems(path->nodes[0]); in replay_xattr_deletes()
2418 btrfs_item_key_to_cpu(path->nodes[0], &key, i); in replay_xattr_deletes()
2424 di = btrfs_item_ptr(path->nodes[0], i, struct btrfs_dir_item); in replay_xattr_deletes()
2425 total_size = btrfs_item_size_nr(path->nodes[0], i); in replay_xattr_deletes()
2428 u16 name_len = btrfs_dir_name_len(path->nodes[0], di); in replay_xattr_deletes()
2429 u16 data_len = btrfs_dir_data_len(path->nodes[0], di); in replay_xattr_deletes()
2438 read_extent_buffer(path->nodes[0], name, in replay_xattr_deletes()
2547 nritems = btrfs_header_nritems(path->nodes[0]); in replay_dir_deletes()
2555 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
2796 cur = path->nodes[*level]; in walk_down_log_tree()
2860 if (path->nodes[*level-1]) in walk_down_log_tree()
2861 free_extent_buffer(path->nodes[*level-1]); in walk_down_log_tree()
2862 path->nodes[*level-1] = next; in walk_down_log_tree()
2867 path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); in walk_down_log_tree()
2883 for (i = *level; i < BTRFS_MAX_LEVEL - 1 && path->nodes[i]; i++) { in walk_up_log_tree()
2885 if (slot + 1 < btrfs_header_nritems(path->nodes[i])) { in walk_up_log_tree()
2891 ret = wc->process_func(root, path->nodes[*level], wc, in walk_up_log_tree()
2892 btrfs_header_generation(path->nodes[*level]), in walk_up_log_tree()
2900 next = path->nodes[*level]; in walk_up_log_tree()
2908 path->nodes[*level]->start, in walk_up_log_tree()
2909 path->nodes[*level]->len); in walk_up_log_tree()
2919 path->nodes[*level]->start); in walk_up_log_tree()
2922 free_extent_buffer(path->nodes[*level]); in walk_up_log_tree()
2923 path->nodes[*level] = NULL; in walk_up_log_tree()
2951 path->nodes[level] = log->node; in walk_log_tree()
2974 if (path->nodes[orig_level]) { in walk_log_tree()
2975 ret = wc->process_func(log, path->nodes[orig_level], wc, in walk_log_tree()
2976 btrfs_header_generation(path->nodes[orig_level]), in walk_log_tree()
2983 next = path->nodes[orig_level]; in walk_log_tree()
3648 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in insert_dir_log_key()
3650 btrfs_set_dir_log_end(path->nodes[0], item, last_offset); in insert_dir_log_key()
3651 btrfs_mark_buffer_dirty(path->nodes[0]); in insert_dir_log_key()
3710 dst = dst_path->nodes[0]; in flush_dir_items_batch()
3739 struct extent_buffer *src = path->nodes[0]; in process_dir_items_leaf()
3910 btrfs_item_key_to_cpu(path->nodes[0], &tmp, in log_dir_items()
3922 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3926 path->nodes[0], path->slots[0], in log_dir_items()
3961 path->slots[0] = btrfs_header_nritems(path->nodes[0]); in log_dir_items()
3975 btrfs_item_key_to_cpu(path->nodes[0], &min_key, path->slots[0]); in log_dir_items()
3980 if (btrfs_header_generation(path->nodes[0]) != trans->transid) { in log_dir_items()
3983 path->nodes[0], path->slots[0], in log_dir_items()
4117 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in drop_inode_items()
4125 ret = btrfs_bin_search(path->nodes[0], &found_key, &start_slot); in drop_inode_items()
4261 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
4263 fill_inode_item(trans, path->nodes[0], inode_item, &inode->vfs_inode, in log_inode_item()
4328 struct extent_buffer *src = src_path->nodes[0]; in copy_items()
4364 dst_offset = btrfs_item_ptr_offset(dst_path->nodes[0], in copy_items()
4370 inode_item = btrfs_item_ptr(dst_path->nodes[0], in copy_items()
4373 fill_inode_item(trans, dst_path->nodes[0], inode_item, in copy_items()
4378 copy_extent_buffer(dst_path->nodes[0], src, dst_offset, in copy_items()
4425 btrfs_mark_buffer_dirty(dst_path->nodes[0]); in copy_items()
4618 leaf = path->nodes[0]; in log_one_extent()
4709 leaf = path->nodes[0]; in btrfs_log_prealloc_extents()
4729 leaf = path->nodes[0]; in btrfs_log_prealloc_extents()
4914 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in logged_inode_size()
4916 *size_ret = btrfs_inode_size(path->nodes[0], item); in logged_inode_size()
4971 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_xattrs()
5047 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_holes()
5049 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in btrfs_log_holes()
5057 leaf = path->nodes[0]; in btrfs_log_holes()
5093 leaf = path->nodes[0]; in btrfs_log_holes()
5223 btrfs_dir_item_key_to_cpu(search_path->nodes[0], in btrfs_check_ref_name_override()
5380 struct extent_buffer *leaf = path->nodes[0]; in log_conflicting_inodes()
5470 ret = btrfs_check_ref_name_override(path->nodes[0], in copy_inode_items_to_log()
5529 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in copy_inode_items_to_log()
5530 btrfs_item_key_to_cpu(path->nodes[0], min_key, in copy_inode_items_to_log()
5972 leaf = path->nodes[0]; in log_new_dir_dentries()
6076 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_parents()
6180 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in log_new_ancestors()
6184 struct extent_buffer *leaf = path->nodes[0]; in log_new_ancestors()
6218 leaf = path->nodes[0]; in log_new_ancestors()
6226 leaf = path->nodes[0]; in log_new_ancestors()
6309 struct extent_buffer *leaf = path->nodes[0]; in log_all_new_ancestors()
6566 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in btrfs_recover_log_trees()