• Home
  • Raw
  • Download

Lines Matching refs:cur

486 	struct tree_mod_elem *cur;  in __tree_mod_log_insert()  local
493 cur = container_of(*new, struct tree_mod_elem, node); in __tree_mod_log_insert()
495 if (cur->index < tm->index) in __tree_mod_log_insert()
497 else if (cur->index > tm->index) in __tree_mod_log_insert()
499 else if (cur->seq < tm->seq) in __tree_mod_log_insert()
501 else if (cur->seq > tm->seq) in __tree_mod_log_insert()
716 struct tree_mod_elem *cur = NULL; in __tree_mod_log_search() local
724 cur = container_of(node, struct tree_mod_elem, node); in __tree_mod_log_search()
725 if (cur->index < index) { in __tree_mod_log_search()
727 } else if (cur->index > index) { in __tree_mod_log_search()
729 } else if (cur->seq < min_seq) { in __tree_mod_log_search()
734 BUG_ON(found->seq > cur->seq); in __tree_mod_log_search()
735 found = cur; in __tree_mod_log_search()
737 } else if (cur->seq > min_seq) { in __tree_mod_log_search()
740 BUG_ON(found->seq < cur->seq); in __tree_mod_log_search()
741 found = cur; in __tree_mod_log_search()
744 found = cur; in __tree_mod_log_search()
1503 struct extent_buffer *cur; in btrfs_realloc_node() local
1559 cur = btrfs_find_tree_block(root, blocknr, blocksize); in btrfs_realloc_node()
1560 if (cur) in btrfs_realloc_node()
1561 uptodate = btrfs_buffer_uptodate(cur, gen, 0); in btrfs_realloc_node()
1564 if (!cur || !uptodate) { in btrfs_realloc_node()
1565 if (!cur) { in btrfs_realloc_node()
1566 cur = read_tree_block(root, blocknr, in btrfs_realloc_node()
1568 if (!cur || !extent_buffer_uptodate(cur)) { in btrfs_realloc_node()
1569 free_extent_buffer(cur); in btrfs_realloc_node()
1573 err = btrfs_read_buffer(cur, gen); in btrfs_realloc_node()
1575 free_extent_buffer(cur); in btrfs_realloc_node()
1583 btrfs_tree_lock(cur); in btrfs_realloc_node()
1584 btrfs_set_lock_blocking(cur); in btrfs_realloc_node()
1585 err = __btrfs_cow_block(trans, root, cur, parent, i, in btrfs_realloc_node()
1586 &cur, search_start, in btrfs_realloc_node()
1590 btrfs_tree_unlock(cur); in btrfs_realloc_node()
1591 free_extent_buffer(cur); in btrfs_realloc_node()
1594 search_start = cur->start; in btrfs_realloc_node()
1595 last_block = cur->start; in btrfs_realloc_node()
1597 btrfs_tree_unlock(cur); in btrfs_realloc_node()
1598 free_extent_buffer(cur); in btrfs_realloc_node()
4905 struct extent_buffer *cur; in btrfs_search_forward() local
4915 cur = btrfs_read_lock_root_node(root); in btrfs_search_forward()
4916 level = btrfs_header_level(cur); in btrfs_search_forward()
4918 path->nodes[level] = cur; in btrfs_search_forward()
4921 if (btrfs_header_generation(cur) < min_trans) { in btrfs_search_forward()
4926 nritems = btrfs_header_nritems(cur); in btrfs_search_forward()
4927 level = btrfs_header_level(cur); in btrfs_search_forward()
4928 sret = bin_search(cur, min_key, level, &slot); in btrfs_search_forward()
4936 btrfs_item_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward()
4949 blockptr = btrfs_node_blockptr(cur, slot); in btrfs_search_forward()
4950 gen = btrfs_node_ptr_generation(cur, slot); in btrfs_search_forward()
4975 btrfs_node_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward()
4983 cur = read_node_slot(root, cur, slot); in btrfs_search_forward()
4984 BUG_ON(!cur); /* -ENOMEM */ in btrfs_search_forward()
4986 btrfs_tree_read_lock(cur); in btrfs_search_forward()
4989 path->nodes[level - 1] = cur; in btrfs_search_forward()