Lines Matching defs:leaf
28 struct extent_buffer *leaf;
36 leaf = path->nodes[0];
37 item_size = btrfs_item_size_nr(leaf, path->slots[0]);
38 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]);
41 len = btrfs_inode_ref_name_len(leaf, ref);
46 if (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) {
58 struct extent_buffer *leaf;
66 leaf = path->nodes[0];
67 item_size = btrfs_item_size_nr(leaf, path->slots[0]);
68 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]);
79 ref_name_len = btrfs_inode_extref_name_len(leaf, extref);
82 btrfs_inode_extref_parent(leaf, extref) == ref_objectid &&
83 (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0)) {
130 struct extent_buffer *leaf;
165 leaf = path->nodes[0];
166 item_size = btrfs_item_size_nr(leaf, path->slots[0]);
168 *index = btrfs_inode_extref_index(leaf, extref);
180 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]);
182 memmove_extent_buffer(leaf, ptr, ptr + del_len,
201 struct extent_buffer *leaf;
233 leaf = path->nodes[0];
234 item_size = btrfs_item_size_nr(leaf, path->slots[0]);
237 *index = btrfs_inode_ref_index(leaf, ref);
245 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]);
246 memmove_extent_buffer(leaf, ptr, ptr + sub_item_len,
281 struct extent_buffer *leaf;
306 leaf = path->nodes[0];
308 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char);
309 ptr += btrfs_item_size(leaf, item) - ins_len;
419 struct extent_buffer *leaf;
426 leaf = path->nodes[0];
427 btrfs_item_key_to_cpu(leaf, &found_key, slot);