Lines Matching refs:nodes

363 		u32 dst_size = btrfs_item_size_nr(path->nodes[0],  in overwrite_item()
383 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
384 read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, in overwrite_item()
410 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
412 nbytes = btrfs_inode_nbytes(path->nodes[0], item); in overwrite_item()
457 found_size = btrfs_item_size_nr(path->nodes[0], in overwrite_item()
467 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], in overwrite_item()
487 struct extent_buffer *dst_eb = path->nodes[0]; in overwrite_item()
511 S_ISDIR(btrfs_inode_mode(path->nodes[0], dst_item))) { in overwrite_item()
513 saved_i_size = btrfs_inode_size(path->nodes[0], in overwrite_item()
518 copy_extent_buffer(path->nodes[0], eb, dst_ptr, in overwrite_item()
524 btrfs_set_inode_size(path->nodes[0], dst_item, saved_i_size); in overwrite_item()
531 if (btrfs_inode_generation(path->nodes[0], dst_item) == 0) { in overwrite_item()
532 btrfs_set_inode_generation(path->nodes[0], dst_item, in overwrite_item()
537 btrfs_mark_buffer_dirty(path->nodes[0]); in overwrite_item()
637 leaf = path->nodes[0]; in replay_one_extent()
672 dest_offset = btrfs_item_ptr_offset(path->nodes[0], in replay_one_extent()
674 copy_extent_buffer(path->nodes[0], eb, dest_offset, in replay_one_extent()
834 leaf = path->nodes[0]; in drop_one_dir_item()
883 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
892 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
936 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
946 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log()
950 found_name_len = btrfs_inode_ref_name_len(path->nodes[0], ref); in backref_in_log()
953 ret = memcmp_extent_buffer(path->nodes[0], name, in backref_in_log()
996 leaf = path->nodes[0]; in __add_inode_ref()
1064 leaf = path->nodes[0]; in __add_inode_ref()
1357 leaf = path->nodes[0]; in count_inode_extrefs()
1406 btrfs_item_key_to_cpu(path->nodes[0], &key, in count_inode_refs()
1411 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in count_inode_refs()
1412 ptr_end = ptr + btrfs_item_size_nr(path->nodes[0], in count_inode_refs()
1418 name_len = btrfs_inode_ref_name_len(path->nodes[0], in count_inode_refs()
1518 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fixup_inode_link_counts()
1730 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name()
1735 btrfs_dir_type(path->nodes[0], dst_di) == log_type) { in replay_one_name()
1906 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
1912 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
1914 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
1925 nritems = btrfs_header_nritems(path->nodes[0]); in find_dir_range()
1934 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
1940 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
1942 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
1978 eb = path->nodes[0]; in check_item_in_log()
2088 nritems = btrfs_header_nritems(path->nodes[0]); in replay_xattr_deletes()
2096 btrfs_item_key_to_cpu(path->nodes[0], &key, i); in replay_xattr_deletes()
2102 di = btrfs_item_ptr(path->nodes[0], i, struct btrfs_dir_item); in replay_xattr_deletes()
2103 total_size = btrfs_item_size_nr(path->nodes[0], i); in replay_xattr_deletes()
2106 u16 name_len = btrfs_dir_name_len(path->nodes[0], di); in replay_xattr_deletes()
2107 u16 data_len = btrfs_dir_data_len(path->nodes[0], di); in replay_xattr_deletes()
2116 read_extent_buffer(path->nodes[0], name, in replay_xattr_deletes()
2223 nritems = btrfs_header_nritems(path->nodes[0]); in replay_dir_deletes()
2229 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
2408 cur = path->nodes[*level]; in walk_down_log_tree()
2420 parent = path->nodes[*level]; in walk_down_log_tree()
2470 if (path->nodes[*level-1]) in walk_down_log_tree()
2471 free_extent_buffer(path->nodes[*level-1]); in walk_down_log_tree()
2472 path->nodes[*level-1] = next; in walk_down_log_tree()
2480 path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); in walk_down_log_tree()
2496 for (i = *level; i < BTRFS_MAX_LEVEL - 1 && path->nodes[i]; i++) { in walk_up_log_tree()
2498 if (slot + 1 < btrfs_header_nritems(path->nodes[i])) { in walk_up_log_tree()
2505 if (path->nodes[*level] == root->node) in walk_up_log_tree()
2506 parent = path->nodes[*level]; in walk_up_log_tree()
2508 parent = path->nodes[*level + 1]; in walk_up_log_tree()
2511 ret = wc->process_func(root, path->nodes[*level], wc, in walk_up_log_tree()
2512 btrfs_header_generation(path->nodes[*level])); in walk_up_log_tree()
2519 next = path->nodes[*level]; in walk_up_log_tree()
2532 path->nodes[*level]->start, in walk_up_log_tree()
2533 path->nodes[*level]->len); in walk_up_log_tree()
2537 free_extent_buffer(path->nodes[*level]); in walk_up_log_tree()
2538 path->nodes[*level] = NULL; in walk_up_log_tree()
2565 path->nodes[level] = log->node; in walk_log_tree()
2588 if (path->nodes[orig_level]) { in walk_log_tree()
2589 ret = wc->process_func(log, path->nodes[orig_level], wc, in walk_log_tree()
2590 btrfs_header_generation(path->nodes[orig_level])); in walk_log_tree()
2596 next = path->nodes[orig_level]; in walk_log_tree()
3141 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_del_dir_entries_in_log()
3143 i_size = btrfs_inode_size(path->nodes[0], item); in btrfs_del_dir_entries_in_log()
3148 btrfs_set_inode_size(path->nodes[0], item, i_size); in btrfs_del_dir_entries_in_log()
3149 btrfs_mark_buffer_dirty(path->nodes[0]); in btrfs_del_dir_entries_in_log()
3226 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in insert_dir_log_key()
3228 btrfs_set_dir_log_end(path->nodes[0], item, last_offset); in insert_dir_log_key()
3229 btrfs_mark_buffer_dirty(path->nodes[0]); in insert_dir_log_key()
3288 btrfs_item_key_to_cpu(path->nodes[0], &tmp, in log_dir_items()
3300 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3304 path->nodes[0], path->slots[0], in log_dir_items()
3325 src = path->nodes[0]; in log_dir_items()
3383 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3388 if (btrfs_header_generation(path->nodes[0]) != trans->transid) { in log_dir_items()
3390 path->nodes[0], path->slots[0], in log_dir_items()
3491 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in drop_objectid_items()
3499 ret = btrfs_bin_search(path->nodes[0], &found_key, 0, in drop_objectid_items()
3585 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
3587 fill_inode_item(trans, path->nodes[0], inode_item, inode, 0, 0); in log_inode_item()
3604 struct extent_buffer *src = src_path->nodes[0]; in copy_items()
3641 dst_offset = btrfs_item_ptr_offset(dst_path->nodes[0], in copy_items()
3650 inode_item = btrfs_item_ptr(dst_path->nodes[0], in copy_items()
3653 fill_inode_item(trans, dst_path->nodes[0], inode_item, in copy_items()
3657 copy_extent_buffer(dst_path->nodes[0], src, dst_offset, in copy_items()
3721 btrfs_mark_buffer_dirty(dst_path->nodes[0]); in copy_items()
3769 src = src_path->nodes[0]; in copy_items()
3809 src = src_path->nodes[0]; in copy_items()
3824 if (i >= btrfs_header_nritems(src_path->nodes[0])) { in copy_items()
3829 src = src_path->nodes[0]; in copy_items()
4077 leaf = path->nodes[0]; in log_one_extent()
4219 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in logged_inode_size()
4221 *size_ret = btrfs_inode_size(path->nodes[0], item); in logged_inode_size()
4259 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_xattrs()
4360 leaf = path->nodes[0]; in btrfs_log_trailing_hole()
4705 ret = btrfs_check_ref_name_override(path->nodes[0], in btrfs_log_inode()
4737 src = path->nodes[0]; in btrfs_log_inode()
4763 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_log_inode()
4766 btrfs_item_key_to_cpu(path->nodes[0], &min_key, in btrfs_log_inode()
5072 leaf = path->nodes[0]; in log_new_dir_dentries()
5176 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_parents()
5487 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in btrfs_recover_log_trees()