Lines Matching refs:nodes

355 		u32 dst_size = btrfs_item_size_nr(path->nodes[0],  in overwrite_item()
375 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
376 read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, in overwrite_item()
402 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
404 nbytes = btrfs_inode_nbytes(path->nodes[0], item); in overwrite_item()
449 found_size = btrfs_item_size_nr(path->nodes[0], in overwrite_item()
459 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], in overwrite_item()
479 struct extent_buffer *dst_eb = path->nodes[0]; in overwrite_item()
503 S_ISDIR(btrfs_inode_mode(path->nodes[0], dst_item))) { in overwrite_item()
505 saved_i_size = btrfs_inode_size(path->nodes[0], in overwrite_item()
510 copy_extent_buffer(path->nodes[0], eb, dst_ptr, in overwrite_item()
516 btrfs_set_inode_size(path->nodes[0], dst_item, saved_i_size); in overwrite_item()
523 if (btrfs_inode_generation(path->nodes[0], dst_item) == 0) { in overwrite_item()
524 btrfs_set_inode_generation(path->nodes[0], dst_item, in overwrite_item()
529 btrfs_mark_buffer_dirty(path->nodes[0]); in overwrite_item()
627 leaf = path->nodes[0]; in replay_one_extent()
666 dest_offset = btrfs_item_ptr_offset(path->nodes[0], in replay_one_extent()
668 copy_extent_buffer(path->nodes[0], eb, dest_offset, in replay_one_extent()
842 leaf = path->nodes[0]; in drop_one_dir_item()
892 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
901 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
945 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
948 if (btrfs_find_name_in_ext_backref(path->nodes[0], in backref_in_log()
957 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log()
961 found_name_len = btrfs_inode_ref_name_len(path->nodes[0], ref); in backref_in_log()
964 ret = memcmp_extent_buffer(path->nodes[0], name, in backref_in_log()
1007 leaf = path->nodes[0]; in __add_inode_ref()
1074 leaf = path->nodes[0]; in __add_inode_ref()
1230 eb = path->nodes[0]; in unlink_old_inode_refs()
1317 ret = btrfs_find_name_in_ext_backref(path->nodes[0], in btrfs_inode_ref_exists()
1321 ret = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], in btrfs_inode_ref_exists()
1538 leaf = path->nodes[0]; in count_inode_extrefs()
1587 btrfs_item_key_to_cpu(path->nodes[0], &key, in count_inode_refs()
1592 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in count_inode_refs()
1593 ptr_end = ptr + btrfs_item_size_nr(path->nodes[0], in count_inode_refs()
1599 name_len = btrfs_inode_ref_name_len(path->nodes[0], in count_inode_refs()
1699 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fixup_inode_link_counts()
1912 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name()
1917 btrfs_dir_type(path->nodes[0], dst_di) == log_type) { in replay_one_name()
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()
2094 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
2105 nritems = btrfs_header_nritems(path->nodes[0]); 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()
2121 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
2157 eb = path->nodes[0]; in check_item_in_log()
2262 nritems = btrfs_header_nritems(path->nodes[0]); in replay_xattr_deletes()
2270 btrfs_item_key_to_cpu(path->nodes[0], &key, i); in replay_xattr_deletes()
2276 di = btrfs_item_ptr(path->nodes[0], i, struct btrfs_dir_item); in replay_xattr_deletes()
2277 total_size = btrfs_item_size_nr(path->nodes[0], i); in replay_xattr_deletes()
2280 u16 name_len = btrfs_dir_name_len(path->nodes[0], di); in replay_xattr_deletes()
2281 u16 data_len = btrfs_dir_data_len(path->nodes[0], di); in replay_xattr_deletes()
2290 read_extent_buffer(path->nodes[0], name, in replay_xattr_deletes()
2397 nritems = btrfs_header_nritems(path->nodes[0]); in replay_dir_deletes()
2405 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
2614 cur = path->nodes[*level]; in walk_down_log_tree()
2627 parent = path->nodes[*level]; in walk_down_log_tree()
2682 if (path->nodes[*level-1]) in walk_down_log_tree()
2683 free_extent_buffer(path->nodes[*level-1]); in walk_down_log_tree()
2684 path->nodes[*level-1] = next; in walk_down_log_tree()
2692 path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); in walk_down_log_tree()
2709 for (i = *level; i < BTRFS_MAX_LEVEL - 1 && path->nodes[i]; i++) { in walk_up_log_tree()
2711 if (slot + 1 < btrfs_header_nritems(path->nodes[i])) { in walk_up_log_tree()
2718 if (path->nodes[*level] == root->node) in walk_up_log_tree()
2719 parent = path->nodes[*level]; in walk_up_log_tree()
2721 parent = path->nodes[*level + 1]; in walk_up_log_tree()
2724 ret = wc->process_func(root, path->nodes[*level], wc, in walk_up_log_tree()
2725 btrfs_header_generation(path->nodes[*level]), in walk_up_log_tree()
2733 next = path->nodes[*level]; in walk_up_log_tree()
2749 path->nodes[*level]->start, in walk_up_log_tree()
2750 path->nodes[*level]->len); in walk_up_log_tree()
2754 free_extent_buffer(path->nodes[*level]); in walk_up_log_tree()
2755 path->nodes[*level] = NULL; in walk_up_log_tree()
2783 path->nodes[level] = log->node; in walk_log_tree()
2806 if (path->nodes[orig_level]) { in walk_log_tree()
2807 ret = wc->process_func(log, path->nodes[orig_level], wc, in walk_log_tree()
2808 btrfs_header_generation(path->nodes[orig_level]), in walk_log_tree()
2815 next = path->nodes[orig_level]; in walk_log_tree()
3342 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_del_dir_entries_in_log()
3344 i_size = btrfs_inode_size(path->nodes[0], item); in btrfs_del_dir_entries_in_log()
3349 btrfs_set_inode_size(path->nodes[0], item, i_size); in btrfs_del_dir_entries_in_log()
3350 btrfs_mark_buffer_dirty(path->nodes[0]); in btrfs_del_dir_entries_in_log()
3428 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in insert_dir_log_key()
3430 btrfs_set_dir_log_end(path->nodes[0], item, last_offset); in insert_dir_log_key()
3431 btrfs_mark_buffer_dirty(path->nodes[0]); in insert_dir_log_key()
3490 btrfs_item_key_to_cpu(path->nodes[0], &tmp, 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()
3527 src = path->nodes[0]; in log_dir_items()
3588 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3593 if (btrfs_header_generation(path->nodes[0]) != trans->transid) { in log_dir_items()
3595 path->nodes[0], path->slots[0], in log_dir_items()
3695 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in drop_objectid_items()
3703 ret = btrfs_bin_search(path->nodes[0], &found_key, 0, in drop_objectid_items()
3789 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
3791 fill_inode_item(trans, path->nodes[0], inode_item, &inode->vfs_inode, in log_inode_item()
3810 struct extent_buffer *src = src_path->nodes[0]; in copy_items()
3847 dst_offset = btrfs_item_ptr_offset(dst_path->nodes[0], in copy_items()
3856 inode_item = btrfs_item_ptr(dst_path->nodes[0], in copy_items()
3859 fill_inode_item(trans, dst_path->nodes[0], inode_item, in copy_items()
3864 copy_extent_buffer(dst_path->nodes[0], src, dst_offset, in copy_items()
3928 btrfs_mark_buffer_dirty(dst_path->nodes[0]); in copy_items()
3976 src = src_path->nodes[0]; in copy_items()
4014 src = src_path->nodes[0]; in copy_items()
4029 if (i >= btrfs_header_nritems(src_path->nodes[0])) { in copy_items()
4034 src = src_path->nodes[0]; in copy_items()
4080 i == btrfs_header_nritems(src_path->nodes[0])) { in copy_items()
4086 btrfs_item_key_to_cpu(src_path->nodes[0], &key, in copy_items()
4207 leaf = path->nodes[0]; in log_one_extent()
4288 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_prealloc_extents()
4470 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in logged_inode_size()
4472 *size_ret = btrfs_inode_size(path->nodes[0], item); in logged_inode_size()
4510 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_xattrs()
4612 leaf = path->nodes[0]; in btrfs_log_trailing_hole()
4768 btrfs_dir_item_key_to_cpu(search_path->nodes[0], in btrfs_check_ref_name_override()
4975 ret = btrfs_check_ref_name_override(path->nodes[0], in btrfs_log_inode()
5085 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_log_inode()
5088 btrfs_item_key_to_cpu(path->nodes[0], &min_key, in btrfs_log_inode()
5414 leaf = path->nodes[0]; in log_new_dir_dentries()
5521 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_parents()
5839 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in btrfs_recover_log_trees()