• Home
  • Raw
  • Download

Lines Matching refs:level

308 			  u64 parent, u64 bytenr, int level)  in add_tree_block()  argument
323 ref->owner = level; in add_tree_block()
550 int level, u64 *bytenr, u64 *num_bytes) in walk_down_tree() argument
557 while (level >= 0) { in walk_down_tree()
558 if (level) { in walk_down_tree()
561 block_bytenr = btrfs_node_blockptr(path->nodes[level], in walk_down_tree()
562 path->slots[level]); in walk_down_tree()
563 gen = btrfs_node_ptr_generation(path->nodes[level], in walk_down_tree()
564 path->slots[level]); in walk_down_tree()
565 btrfs_node_key_to_cpu(path->nodes[level], &first_key, in walk_down_tree()
566 path->slots[level]); in walk_down_tree()
568 level - 1, &first_key); in walk_down_tree()
577 path->nodes[level-1] = eb; in walk_down_tree()
578 path->slots[level-1] = 0; in walk_down_tree()
579 path->locks[level-1] = BTRFS_READ_LOCK_BLOCKING; in walk_down_tree()
585 level--; in walk_down_tree()
591 static int walk_up_tree(struct btrfs_path *path, int *level) in walk_up_tree() argument
602 *level = l; in walk_up_tree()
691 owner = generic_ref->tree_ref.level; in btrfs_ref_tree_mod()
977 int ret, level; in btrfs_build_ref_tree() local
988 level = btrfs_header_level(eb); in btrfs_build_ref_tree()
989 path->nodes[level] = eb; in btrfs_build_ref_tree()
990 path->slots[level] = 0; in btrfs_build_ref_tree()
991 path->locks[level] = BTRFS_READ_LOCK_BLOCKING; in btrfs_build_ref_tree()
1000 ret = walk_down_tree(fs_info->extent_root, path, level, in btrfs_build_ref_tree()
1004 ret = walk_up_tree(path, &level); in btrfs_build_ref_tree()