Lines Matching refs:leaf
210 struct extent_buffer *leaf; in btrfs_find_orphan_roots() local
234 leaf = path->nodes[0]; in btrfs_find_orphan_roots()
235 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_find_orphan_roots()
241 leaf = path->nodes[0]; in btrfs_find_orphan_roots()
244 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_find_orphan_roots()
324 struct extent_buffer *leaf; in btrfs_del_root_ref() local
343 leaf = path->nodes[0]; in btrfs_del_root_ref()
344 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref()
347 if ((btrfs_root_ref_dirid(leaf, ref) != dirid) || in btrfs_del_root_ref()
348 (btrfs_root_ref_name_len(leaf, ref) != name_len) || in btrfs_del_root_ref()
349 memcmp_extent_buffer(leaf, name, ptr, name_len)) { in btrfs_del_root_ref()
353 *sequence = btrfs_root_ref_sequence(leaf, ref); in btrfs_del_root_ref()
400 struct extent_buffer *leaf; in btrfs_add_root_ref() local
419 leaf = path->nodes[0]; in btrfs_add_root_ref()
420 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
421 btrfs_set_root_ref_dirid(leaf, ref, dirid); in btrfs_add_root_ref()
422 btrfs_set_root_ref_sequence(leaf, ref, sequence); in btrfs_add_root_ref()
423 btrfs_set_root_ref_name_len(leaf, ref, name_len); in btrfs_add_root_ref()
425 write_extent_buffer(leaf, name, ptr, name_len); in btrfs_add_root_ref()
426 btrfs_mark_buffer_dirty(leaf); in btrfs_add_root_ref()