Lines Matching refs:nodes
370 u32 dst_size = btrfs_item_size_nr(path->nodes[0], in overwrite_item()
390 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
391 read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, in overwrite_item()
417 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
419 nbytes = btrfs_inode_nbytes(path->nodes[0], item); in overwrite_item()
464 found_size = btrfs_item_size_nr(path->nodes[0], in overwrite_item()
474 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], in overwrite_item()
494 struct extent_buffer *dst_eb = path->nodes[0]; in overwrite_item()
518 S_ISDIR(btrfs_inode_mode(path->nodes[0], dst_item))) { in overwrite_item()
520 saved_i_size = btrfs_inode_size(path->nodes[0], in overwrite_item()
525 copy_extent_buffer(path->nodes[0], eb, dst_ptr, in overwrite_item()
531 btrfs_set_inode_size(path->nodes[0], dst_item, saved_i_size); in overwrite_item()
538 if (btrfs_inode_generation(path->nodes[0], dst_item) == 0) { in overwrite_item()
539 btrfs_set_inode_generation(path->nodes[0], dst_item, in overwrite_item()
544 btrfs_mark_buffer_dirty(path->nodes[0]); in overwrite_item()
644 leaf = path->nodes[0]; in replay_one_extent()
679 dest_offset = btrfs_item_ptr_offset(path->nodes[0], in replay_one_extent()
681 copy_extent_buffer(path->nodes[0], eb, dest_offset, in replay_one_extent()
787 leaf = path->nodes[0]; in drop_one_dir_item()
836 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
845 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); in inode_in_dir()
889 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
899 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log()
903 found_name_len = btrfs_inode_ref_name_len(path->nodes[0], ref); in backref_in_log()
906 ret = memcmp_extent_buffer(path->nodes[0], name, in backref_in_log()
949 leaf = path->nodes[0]; in __add_inode_ref()
1017 leaf = path->nodes[0]; in __add_inode_ref()
1310 leaf = path->nodes[0]; in count_inode_extrefs()
1359 btrfs_item_key_to_cpu(path->nodes[0], &key, in count_inode_refs()
1364 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in count_inode_refs()
1365 ptr_end = ptr + btrfs_item_size_nr(path->nodes[0], in count_inode_refs()
1371 name_len = btrfs_inode_ref_name_len(path->nodes[0], in count_inode_refs()
1471 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fixup_inode_link_counts()
1680 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name()
1685 btrfs_dir_type(path->nodes[0], dst_di) == log_type) { in replay_one_name()
1804 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
1810 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
1812 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
1823 nritems = btrfs_header_nritems(path->nodes[0]); in find_dir_range()
1832 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in find_dir_range()
1838 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in find_dir_range()
1840 found_end = btrfs_dir_log_end(path->nodes[0], item); in find_dir_range()
1876 eb = path->nodes[0]; in check_item_in_log()
1986 nritems = btrfs_header_nritems(path->nodes[0]); in replay_xattr_deletes()
1994 btrfs_item_key_to_cpu(path->nodes[0], &key, i); in replay_xattr_deletes()
2000 di = btrfs_item_ptr(path->nodes[0], i, struct btrfs_dir_item); in replay_xattr_deletes()
2001 total_size = btrfs_item_size_nr(path->nodes[0], i); in replay_xattr_deletes()
2004 u16 name_len = btrfs_dir_name_len(path->nodes[0], di); in replay_xattr_deletes()
2005 u16 data_len = btrfs_dir_data_len(path->nodes[0], di); in replay_xattr_deletes()
2014 read_extent_buffer(path->nodes[0], name, in replay_xattr_deletes()
2121 nritems = btrfs_header_nritems(path->nodes[0]); in replay_dir_deletes()
2127 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
2306 cur = path->nodes[*level]; in walk_down_log_tree()
2318 parent = path->nodes[*level]; in walk_down_log_tree()
2368 if (path->nodes[*level-1]) in walk_down_log_tree()
2369 free_extent_buffer(path->nodes[*level-1]); in walk_down_log_tree()
2370 path->nodes[*level-1] = next; in walk_down_log_tree()
2378 path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); in walk_down_log_tree()
2394 for (i = *level; i < BTRFS_MAX_LEVEL - 1 && path->nodes[i]; i++) { in walk_up_log_tree()
2396 if (slot + 1 < btrfs_header_nritems(path->nodes[i])) { in walk_up_log_tree()
2403 if (path->nodes[*level] == root->node) in walk_up_log_tree()
2404 parent = path->nodes[*level]; in walk_up_log_tree()
2406 parent = path->nodes[*level + 1]; in walk_up_log_tree()
2409 ret = wc->process_func(root, path->nodes[*level], wc, in walk_up_log_tree()
2410 btrfs_header_generation(path->nodes[*level])); in walk_up_log_tree()
2417 next = path->nodes[*level]; in walk_up_log_tree()
2430 path->nodes[*level]->start, in walk_up_log_tree()
2431 path->nodes[*level]->len); in walk_up_log_tree()
2435 free_extent_buffer(path->nodes[*level]); in walk_up_log_tree()
2436 path->nodes[*level] = NULL; in walk_up_log_tree()
2463 path->nodes[level] = log->node; in walk_log_tree()
2486 if (path->nodes[orig_level]) { in walk_log_tree()
2487 ret = wc->process_func(log, path->nodes[orig_level], wc, in walk_log_tree()
2488 btrfs_header_generation(path->nodes[orig_level])); in walk_log_tree()
2494 next = path->nodes[orig_level]; in walk_log_tree()
3033 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_del_dir_entries_in_log()
3035 i_size = btrfs_inode_size(path->nodes[0], item); in btrfs_del_dir_entries_in_log()
3040 btrfs_set_inode_size(path->nodes[0], item, i_size); in btrfs_del_dir_entries_in_log()
3041 btrfs_mark_buffer_dirty(path->nodes[0]); in btrfs_del_dir_entries_in_log()
3118 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in insert_dir_log_key()
3120 btrfs_set_dir_log_end(path->nodes[0], item, last_offset); in insert_dir_log_key()
3121 btrfs_mark_buffer_dirty(path->nodes[0]); in insert_dir_log_key()
3180 btrfs_item_key_to_cpu(path->nodes[0], &tmp, in log_dir_items()
3192 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3196 path->nodes[0], path->slots[0], in log_dir_items()
3217 src = path->nodes[0]; in log_dir_items()
3275 btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); in log_dir_items()
3280 if (btrfs_header_generation(path->nodes[0]) != trans->transid) { in log_dir_items()
3282 path->nodes[0], path->slots[0], in log_dir_items()
3383 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in drop_objectid_items()
3391 ret = btrfs_bin_search(path->nodes[0], &found_key, 0, in drop_objectid_items()
3477 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
3479 fill_inode_item(trans, path->nodes[0], inode_item, inode, 0, 0); in log_inode_item()
3496 struct extent_buffer *src = src_path->nodes[0]; in copy_items()
3533 dst_offset = btrfs_item_ptr_offset(dst_path->nodes[0], in copy_items()
3542 inode_item = btrfs_item_ptr(dst_path->nodes[0], in copy_items()
3545 fill_inode_item(trans, dst_path->nodes[0], inode_item, in copy_items()
3549 copy_extent_buffer(dst_path->nodes[0], src, dst_offset, in copy_items()
3613 btrfs_mark_buffer_dirty(dst_path->nodes[0]); in copy_items()
3661 src = src_path->nodes[0]; in copy_items()
3701 src = src_path->nodes[0]; in copy_items()
3716 if (i >= btrfs_header_nritems(src_path->nodes[0])) { in copy_items()
3721 src = src_path->nodes[0]; in copy_items()
3975 leaf = path->nodes[0]; in log_one_extent()
4117 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in logged_inode_size()
4119 *size_ret = btrfs_inode_size(path->nodes[0], item); in logged_inode_size()
4157 struct extent_buffer *leaf = path->nodes[0]; in btrfs_log_all_xattrs()
4258 leaf = path->nodes[0]; in btrfs_log_trailing_hole()
4603 ret = btrfs_check_ref_name_override(path->nodes[0], in btrfs_log_inode()
4635 src = path->nodes[0]; in btrfs_log_inode()
4661 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_log_inode()
4664 btrfs_item_key_to_cpu(path->nodes[0], &min_key, in btrfs_log_inode()
4970 leaf = path->nodes[0]; in log_new_dir_dentries()
5267 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in btrfs_recover_log_trees()