Lines Matching refs:eb
483 struct extent_buffer *eb, in fs_path_add_from_extent_buffer() argument
493 read_extent_buffer(eb, prepared, off, len); in fs_path_add_from_extent_buffer()
606 struct extent_buffer *eb, in tlv_put_btrfs_timespec() argument
610 read_extent_buffer(eb, &bts, (unsigned long)ts, sizeof(bts)); in tlv_put_btrfs_timespec()
652 #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ argument
654 ret = tlv_put_btrfs_timespec(sctx, attrtype, eb, ts); \
880 struct extent_buffer *eb = path->nodes[0]; in iterate_inode_ref() local
911 ptr = (unsigned long)btrfs_item_ptr(eb, slot, in iterate_inode_ref()
914 total = btrfs_item_size(eb, item); in iterate_inode_ref()
917 ptr = btrfs_item_ptr_offset(eb, slot); in iterate_inode_ref()
918 total = btrfs_item_size_nr(eb, slot); in iterate_inode_ref()
927 name_len = btrfs_inode_ref_name_len(eb, iref); in iterate_inode_ref()
929 index = btrfs_inode_ref_index(eb, iref); in iterate_inode_ref()
933 name_len = btrfs_inode_extref_name_len(eb, extref); in iterate_inode_ref()
935 index = btrfs_inode_extref_index(eb, extref); in iterate_inode_ref()
936 dir = btrfs_inode_extref_parent(eb, extref); in iterate_inode_ref()
941 name_off, eb, dir, in iterate_inode_ref()
955 eb, dir, in iterate_inode_ref()
965 ret = fs_path_add_from_extent_buffer(p, eb, name_off, in iterate_inode_ref()
1000 struct extent_buffer *eb; in iterate_dir_item() local
1028 eb = path->nodes[0]; in iterate_dir_item()
1031 di = btrfs_item_ptr(eb, slot, struct btrfs_dir_item); in iterate_dir_item()
1034 total = btrfs_item_size(eb, item); in iterate_dir_item()
1038 name_len = btrfs_dir_name_len(eb, di); in iterate_dir_item()
1039 data_len = btrfs_dir_data_len(eb, di); in iterate_dir_item()
1040 type = btrfs_dir_type(eb, di); in iterate_dir_item()
1041 btrfs_dir_item_key_to_cpu(eb, di, &di_key); in iterate_dir_item()
1085 read_extent_buffer(eb, buf, (unsigned long)(di + 1), in iterate_dir_item()
1312 struct extent_buffer *eb = path->nodes[0]; in find_extent_clone() local
1346 fi = btrfs_item_ptr(eb, path->slots[0], in find_extent_clone()
1348 extent_type = btrfs_file_extent_type(eb, fi); in find_extent_clone()
1353 compressed = btrfs_file_extent_compression(eb, fi); in find_extent_clone()
1355 num_bytes = btrfs_file_extent_num_bytes(eb, fi); in find_extent_clone()
1356 disk_byte = btrfs_file_extent_disk_bytenr(eb, fi); in find_extent_clone()
1361 logical = disk_byte + btrfs_file_extent_offset(eb, fi); in find_extent_clone()
1426 backref_ctx->data_offset = btrfs_file_extent_offset(eb, fi); in find_extent_clone()
2548 struct extent_buffer *eb; in send_utimes() local
2573 eb = path->nodes[0]; in send_utimes()
2575 ii = btrfs_item_ptr(eb, slot, struct btrfs_inode_item); in send_utimes()
2585 TLV_PUT_BTRFS_TIMESPEC(sctx, BTRFS_SEND_A_ATIME, eb, &ii->atime); in send_utimes()
2586 TLV_PUT_BTRFS_TIMESPEC(sctx, BTRFS_SEND_A_MTIME, eb, &ii->mtime); in send_utimes()
2587 TLV_PUT_BTRFS_TIMESPEC(sctx, BTRFS_SEND_A_CTIME, eb, &ii->ctime); in send_utimes()
2696 struct extent_buffer *eb; in did_create_dir() local
2714 eb = path->nodes[0]; in did_create_dir()
2716 if (slot >= btrfs_header_nritems(eb)) { in did_create_dir()
2727 btrfs_item_key_to_cpu(eb, &found_key, slot); in did_create_dir()
2734 di = btrfs_item_ptr(eb, slot, struct btrfs_dir_item); in did_create_dir()
2735 btrfs_dir_item_key_to_cpu(eb, di, &di_key); in did_create_dir()
4533 struct extent_buffer *eb; in process_all_refs() local
4563 eb = path->nodes[0]; in process_all_refs()
4565 if (slot >= btrfs_header_nritems(eb)) { in process_all_refs()
4574 btrfs_item_key_to_cpu(eb, &found_key, slot); in process_all_refs()
4856 struct extent_buffer *eb; in process_all_new_xattrs() local
4873 eb = path->nodes[0]; in process_all_new_xattrs()
4875 if (slot >= btrfs_header_nritems(eb)) { in process_all_new_xattrs()
4886 btrfs_item_key_to_cpu(eb, &found_key, slot); in process_all_new_xattrs()
5500 struct extent_buffer *eb; in is_extent_unchanged() local
5520 eb = left_path->nodes[0]; in is_extent_unchanged()
5522 ei = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in is_extent_unchanged()
5523 left_type = btrfs_file_extent_type(eb, ei); in is_extent_unchanged()
5529 left_disknr = btrfs_file_extent_disk_bytenr(eb, ei); in is_extent_unchanged()
5530 left_len = btrfs_file_extent_num_bytes(eb, ei); in is_extent_unchanged()
5531 left_offset = btrfs_file_extent_offset(eb, ei); in is_extent_unchanged()
5532 left_gen = btrfs_file_extent_generation(eb, ei); in is_extent_unchanged()
5569 eb = path->nodes[0]; in is_extent_unchanged()
5571 btrfs_item_key_to_cpu(eb, &found_key, slot); in is_extent_unchanged()
5584 ei = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in is_extent_unchanged()
5585 right_type = btrfs_file_extent_type(eb, ei); in is_extent_unchanged()
5593 right_len = btrfs_file_extent_ram_bytes(eb, ei); in is_extent_unchanged()
5596 right_len = btrfs_file_extent_num_bytes(eb, ei); in is_extent_unchanged()
5622 right_disknr = btrfs_file_extent_disk_bytenr(eb, ei); in is_extent_unchanged()
5623 right_offset = btrfs_file_extent_offset(eb, ei); in is_extent_unchanged()
5624 right_gen = btrfs_file_extent_generation(eb, ei); in is_extent_unchanged()
5652 eb = path->nodes[0]; in is_extent_unchanged()
5654 btrfs_item_key_to_cpu(eb, &found_key, slot); in is_extent_unchanged()
5927 struct extent_buffer *eb; in process_all_extents() local
5943 eb = path->nodes[0]; in process_all_extents()
5946 if (slot >= btrfs_header_nritems(eb)) { in process_all_extents()
5957 btrfs_item_key_to_cpu(eb, &found_key, slot); in process_all_extents()
6181 struct extent_buffer *eb = path->nodes[0]; in btrfs_unlink_all_paths() local
6184 if (slot >= btrfs_header_nritems(eb)) { in btrfs_unlink_all_paths()
6193 btrfs_item_key_to_cpu(eb, &key, slot); in btrfs_unlink_all_paths()
6622 struct extent_buffer *eb; in full_send_tree() local
6640 eb = path->nodes[0]; in full_send_tree()
6642 btrfs_item_key_to_cpu(eb, &key, slot); in full_send_tree()