Lines Matching refs:nodes

837 	ii = btrfs_item_ptr(path->nodes[0], path->slots[0],
840 *size = btrfs_inode_size(path->nodes[0], ii);
842 *gen = btrfs_inode_generation(path->nodes[0], ii);
844 *mode = btrfs_inode_mode(path->nodes[0], ii);
846 *uid = btrfs_inode_uid(path->nodes[0], ii);
848 *gid = btrfs_inode_gid(path->nodes[0], ii);
850 *rdev = btrfs_inode_rdev(path->nodes[0], ii);
888 struct extent_buffer *eb = path->nodes[0];
1036 eb = path->nodes[0];
1159 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]);
1312 struct extent_buffer *eb = path->nodes[0];
1373 ei = btrfs_item_ptr(tmp_path->nodes[0], tmp_path->slots[0],
1382 if (btrfs_extent_refs(tmp_path->nodes[0], ei) > SEND_MAX_EXTENT_REFS) {
1520 ei = btrfs_item_ptr(path->nodes[0], path->slots[0],
1522 type = btrfs_file_extent_type(path->nodes[0], ei);
1523 compression = btrfs_file_extent_compression(path->nodes[0], ei);
1528 len = btrfs_file_extent_ram_bytes(path->nodes[0], ei);
1530 ret = fs_path_add_from_extent_buffer(dest, path->nodes[0], off, len);
1724 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &key);
1730 *found_type = btrfs_dir_type(path->nodes[0], di);
1763 btrfs_item_key_to_cpu(path->nodes[0], &found_key,
1774 iref = btrfs_item_ptr(path->nodes[0], path->slots[0],
1776 len = btrfs_inode_ref_name_len(path->nodes[0], iref);
1777 ret = fs_path_add_from_extent_buffer(name, path->nodes[0],
1783 extref = btrfs_item_ptr(path->nodes[0], path->slots[0],
1785 len = btrfs_inode_extref_name_len(path->nodes[0], extref);
1786 ret = fs_path_add_from_extent_buffer(name, path->nodes[0],
1788 parent_dir = btrfs_inode_extref_parent(path->nodes[0], extref);
2382 leaf = path->nodes[0];
2559 eb = path->nodes[0];
2700 eb = path->nodes[0];
2976 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) {
2984 btrfs_item_key_to_cpu(path->nodes[0], &found_key,
2990 di = btrfs_item_ptr(path->nodes[0], path->slots[0],
2992 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &loc);
3515 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &di_key);
3626 struct extent_buffer *leaf = path->nodes[0];
4596 eb = path->nodes[0];
4906 eb = path->nodes[0];
5287 leaf = path->nodes[0];
5387 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0] - 1);
5394 struct extent_buffer *leaf = path->nodes[0];
5600 ei = btrfs_item_ptr(path->nodes[0], path->slots[0],
5602 disk_byte = btrfs_file_extent_disk_bytenr(path->nodes[0], ei);
5603 data_offset = btrfs_file_extent_offset(path->nodes[0], ei);
5640 eb = left_path->nodes[0];
5689 eb = path->nodes[0];
5772 eb = path->nodes[0];
5823 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
5857 struct extent_buffer *leaf = path->nodes[0];
5964 ei = btrfs_item_ptr(path->nodes[0], path->slots[0],
5966 type = btrfs_file_extent_type(path->nodes[0], ei);
5981 if (btrfs_file_extent_disk_bytenr(path->nodes[0], ei) == 0) {
6025 eb = path->nodes[0];
6263 struct extent_buffer *eb = path->nodes[0];
6334 left_ii = btrfs_item_ptr(sctx->left_path->nodes[0],
6337 left_gen = btrfs_inode_generation(sctx->left_path->nodes[0],
6340 right_ii = btrfs_item_ptr(sctx->right_path->nodes[0],
6343 right_gen = btrfs_inode_generation(sctx->right_path->nodes[0],
6347 right_ii = btrfs_item_ptr(sctx->right_path->nodes[0],
6351 right_gen = btrfs_inode_generation(sctx->right_path->nodes[0],
6382 nlinks = btrfs_inode_nlink(sctx->left_path->nodes[0], left_ii);
6396 sctx->left_path->nodes[0], left_ii);
6398 sctx->left_path->nodes[0], left_ii);
6400 sctx->left_path->nodes[0], left_ii);
6408 sctx->right_path->nodes[0], right_ii);
6410 sctx->right_path->nodes[0], right_ii);
6427 sctx->right_path->nodes[0], right_ii);
6429 sctx->right_path->nodes[0], right_ii);
6442 sctx->left_path->nodes[0], left_ii);
6444 sctx->left_path->nodes[0], left_ii);
6446 sctx->left_path->nodes[0], left_ii);
6476 sctx->left_path->nodes[0], left_ii);
6478 sctx->left_path->nodes[0], left_ii);
6619 leaf = path->nodes[0];
6722 eb = path->nodes[0];
6753 eb = btrfs_read_node_slot(path->nodes[*level], path->slots[*level]);
6757 path->nodes[*level - 1] = eb;
6768 nritems = btrfs_header_nritems(path->nodes[*level]);
6778 free_extent_buffer(path->nodes[*level]);
6779 path->nodes[*level] = NULL;
6783 nritems = btrfs_header_nritems(path->nodes[*level]);
6807 btrfs_item_key_to_cpu(path->nodes[*level], key,
6810 btrfs_node_key_to_cpu(path->nodes[*level], key,
6824 len1 = btrfs_item_size_nr(left_path->nodes[0], left_path->slots[0]);
6825 len2 = btrfs_item_size_nr(right_path->nodes[0], right_path->slots[0]);
6829 off1 = btrfs_item_ptr_offset(left_path->nodes[0], left_path->slots[0]);
6830 off2 = btrfs_item_ptr_offset(right_path->nodes[0],
6833 read_extent_buffer(left_path->nodes[0], tmp_buf, off1, len1);
6835 cmp = memcmp_extent_buffer(right_path->nodes[0], tmp_buf, off2, len1);
6912 * Compare keys of current nodes/leafs
6915 * If left == right compare blockptrs of the next nodes/leafs
6939 left_path->nodes[left_level] =
6941 if (!left_path->nodes[left_level]) {
6949 right_path->nodes[right_level] =
6951 if (!right_path->nodes[right_level]) {
6959 btrfs_item_key_to_cpu(left_path->nodes[left_level],
6962 btrfs_node_key_to_cpu(left_path->nodes[left_level],
6965 btrfs_item_key_to_cpu(right_path->nodes[right_level],
6968 btrfs_node_key_to_cpu(right_path->nodes[right_level],
7047 WARN_ON(!extent_buffer_uptodate(left_path->nodes[0]));
7069 left_path->nodes[left_level],
7072 right_path->nodes[right_level],
7075 left_path->nodes[left_level],
7078 right_path->nodes[right_level],