Lines Matching defs:leaf
224 struct extent_buffer *leaf;
254 leaf = path->nodes[0];
255 if (path->slots[0] >= btrfs_header_nritems(leaf)) {
261 leaf = path->nodes[0];
264 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
356 struct extent_buffer *leaf;
373 leaf = path->nodes[0];
374 ref = btrfs_item_ptr(leaf, path->slots[0],
377 WARN_ON(btrfs_root_ref_dirid(leaf, ref) != dirid);
378 WARN_ON(btrfs_root_ref_name_len(leaf, ref) != name_len);
380 WARN_ON(memcmp_extent_buffer(leaf, name, ptr, name_len));
381 *sequence = btrfs_root_ref_sequence(leaf, ref);
428 struct extent_buffer *leaf;
447 leaf = path->nodes[0];
448 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref);
449 btrfs_set_root_ref_dirid(leaf, ref, dirid);
450 btrfs_set_root_ref_sequence(leaf, ref, sequence);
451 btrfs_set_root_ref_name_len(leaf, ref, name_len);
453 write_extent_buffer(leaf, name, ptr, name_len);
454 btrfs_mark_buffer_dirty(leaf);