• Home
  • Raw
  • Download

Lines Matching refs:upper

191 	while (!list_empty(&node->upper)) {  in walk_up_backref()
192 edge = list_entry(node->upper.next, in walk_up_backref()
215 if (list_is_last(&edge->list[LOWER], &lower->upper)) { in walk_down_backref()
399 ASSERT(list_empty(&cur->upper)); in handle_useless_nodes()
423 if (list_empty(&lower->upper)) in handle_useless_nodes()
607 &new_edge->node[LOWER]->upper); in clone_backref_node()
2326 if (list_empty(&next->upper)) in calcu_metadata_size()
2329 edge = list_entry(next->upper.next, in calcu_metadata_size()
2393 struct btrfs_backref_node *upper; in do_relocation() local
2411 list_for_each_entry(edge, &node->upper, list[LOWER]) { in do_relocation()
2416 upper = edge->node[UPPER]; in do_relocation()
2417 root = select_reloc_root(trans, rc, upper, edges); in do_relocation()
2423 if (upper->eb && !upper->locked) { in do_relocation()
2425 ret = btrfs_bin_search(upper->eb, key, &slot); in do_relocation()
2429 bytenr = btrfs_node_blockptr(upper->eb, slot); in do_relocation()
2433 btrfs_backref_drop_node_buffer(upper); in do_relocation()
2436 if (!upper->eb) { in do_relocation()
2446 if (!upper->eb) { in do_relocation()
2447 upper->eb = path->nodes[upper->level]; in do_relocation()
2448 path->nodes[upper->level] = NULL; in do_relocation()
2450 BUG_ON(upper->eb != path->nodes[upper->level]); in do_relocation()
2453 upper->locked = 1; in do_relocation()
2454 path->locks[upper->level] = 0; in do_relocation()
2456 slot = path->slots[upper->level]; in do_relocation()
2459 ret = btrfs_bin_search(upper->eb, key, &slot); in do_relocation()
2465 bytenr = btrfs_node_blockptr(upper->eb, slot); in do_relocation()
2471 upper->eb->start); in do_relocation()
2481 eb = btrfs_read_node_slot(upper->eb, slot); in do_relocation()
2489 ret = btrfs_cow_block(trans, root, eb, upper->eb, in do_relocation()
2501 btrfs_set_node_blockptr(upper->eb, slot, in do_relocation()
2503 btrfs_set_node_ptr_generation(upper->eb, slot, in do_relocation()
2505 btrfs_mark_buffer_dirty(upper->eb); in do_relocation()
2509 upper->eb->start); in do_relocation()
2511 btrfs_header_owner(upper->eb), in do_relocation()
2516 upper->eb); in do_relocation()
2521 if (!upper->pending) in do_relocation()
2522 btrfs_backref_drop_node_buffer(upper); in do_relocation()
2524 btrfs_backref_unlock_node_buffer(upper); in do_relocation()
2604 if (list_empty(&next->upper)) in update_processed_blocks()
2607 edge = list_entry(next->upper.next, in update_processed_blocks()