Lines Matching refs:eb
27 struct extent_buffer *eb; in btrfs_uuid_tree_lookup() local
53 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
55 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_lookup()
56 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup()
68 read_extent_buffer(eb, &data, offset, sizeof(data)); in btrfs_uuid_tree_lookup()
90 struct extent_buffer *eb; in btrfs_uuid_tree_add() local
116 eb = path->nodes[0]; in btrfs_uuid_tree_add()
118 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
125 eb = path->nodes[0]; in btrfs_uuid_tree_add()
127 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
128 offset += btrfs_item_size(eb, slot) - sizeof(subid_le); in btrfs_uuid_tree_add()
138 write_extent_buffer(eb, &subid_le, offset, sizeof(subid_le)); in btrfs_uuid_tree_add()
139 btrfs_mark_buffer_dirty(eb); in btrfs_uuid_tree_add()
154 struct extent_buffer *eb; in btrfs_uuid_tree_remove() local
186 eb = path->nodes[0]; in btrfs_uuid_tree_remove()
188 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_remove()
189 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_remove()
199 read_extent_buffer(eb, &read_subid, offset, sizeof(read_subid)); in btrfs_uuid_tree_remove()
211 item_size = btrfs_item_size(eb, slot); in btrfs_uuid_tree_remove()
219 move_len = item_size - (move_src - btrfs_item_ptr_offset(eb, slot)); in btrfs_uuid_tree_remove()
220 memmove_extent_buffer(eb, move_dst, move_src, move_len); in btrfs_uuid_tree_remove()