Lines Matching refs:disk_key

318 	struct btrfs_disk_key disk_key;  in btrfs_copy_root()  local
327 btrfs_item_key(buf, &disk_key, 0); in btrfs_copy_root()
329 btrfs_node_key(buf, &disk_key, 0); in btrfs_copy_root()
332 &disk_key, level, buf->start, 0, in btrfs_copy_root()
538 struct btrfs_disk_key disk_key; in __btrfs_cow_block() local
558 btrfs_item_key(buf, &disk_key, 0); in __btrfs_cow_block()
560 btrfs_node_key(buf, &disk_key, 0); in __btrfs_cow_block()
566 root->root_key.objectid, &disk_key, level, in __btrfs_cow_block()
771 static int comp_keys(const struct btrfs_disk_key *disk_key, in comp_keys() argument
774 const struct btrfs_key *k1 = (const struct btrfs_key *)disk_key; in comp_keys()
837 struct btrfs_disk_key disk_key; in btrfs_realloc_node() local
866 btrfs_node_key(parent, &disk_key, i); in btrfs_realloc_node()
867 if (!progress_passed && comp_keys(&disk_key, progress) < 0) in btrfs_realloc_node()
1361 struct btrfs_disk_key disk_key; in push_nodes_for_insert() local
1363 btrfs_node_key(mid, &disk_key, 0); in push_nodes_for_insert()
1372 btrfs_set_node_key(parent, &disk_key, pslot); in push_nodes_for_insert()
1421 struct btrfs_disk_key disk_key; in push_nodes_for_insert() local
1423 btrfs_node_key(right, &disk_key, 0); in push_nodes_for_insert()
1432 btrfs_set_node_key(parent, &disk_key, pslot + 1); in push_nodes_for_insert()
1463 struct btrfs_disk_key disk_key; in reada_for_search() local
1524 btrfs_node_key(node, &disk_key, nr); in reada_for_search()
1525 if (btrfs_disk_key_objectid(&disk_key) != objectid) in reada_for_search()
2724 struct btrfs_disk_key disk_key; in btrfs_set_item_key_safe() local
2731 btrfs_item_key(eb, &disk_key, slot - 1); in btrfs_set_item_key_safe()
2732 if (unlikely(comp_keys(&disk_key, new_key) >= 0)) { in btrfs_set_item_key_safe()
2736 slot, btrfs_disk_key_objectid(&disk_key), in btrfs_set_item_key_safe()
2737 btrfs_disk_key_type(&disk_key), in btrfs_set_item_key_safe()
2738 btrfs_disk_key_offset(&disk_key), in btrfs_set_item_key_safe()
2745 btrfs_item_key(eb, &disk_key, slot + 1); in btrfs_set_item_key_safe()
2746 if (unlikely(comp_keys(&disk_key, new_key) <= 0)) { in btrfs_set_item_key_safe()
2750 slot, btrfs_disk_key_objectid(&disk_key), in btrfs_set_item_key_safe()
2751 btrfs_disk_key_type(&disk_key), in btrfs_set_item_key_safe()
2752 btrfs_disk_key_offset(&disk_key), in btrfs_set_item_key_safe()
2759 btrfs_cpu_key_to_disk(&disk_key, new_key); in btrfs_set_item_key_safe()
2760 btrfs_set_item_key(eb, &disk_key, slot); in btrfs_set_item_key_safe()
2763 fixup_low_keys(trans, path, &disk_key, 1); in btrfs_set_item_key_safe()
3113 struct btrfs_disk_key disk_key; in split_node() local
3146 btrfs_node_key(c, &disk_key, mid); in split_node()
3149 &disk_key, level, c->start, 0, in split_node()
3174 ret = insert_ptr(trans, path, &disk_key, split->start, in split_node()
3252 struct btrfs_disk_key disk_key; in __push_leaf_right() local
3344 btrfs_item_key(right, &disk_key, 0); in __push_leaf_right()
3345 btrfs_set_node_key(upper, &disk_key, slot + 1); in __push_leaf_right()
3464 struct btrfs_disk_key disk_key; in __push_leaf_left() local
3564 btrfs_item_key(right, &disk_key, 0); in __push_leaf_left()
3565 fixup_low_keys(trans, path, &disk_key, 1); in __push_leaf_left()
3668 struct btrfs_disk_key disk_key; in copy_for_split() local
3691 btrfs_item_key(right, &disk_key, 0); in copy_for_split()
3692 ret = insert_ptr(trans, path, &disk_key, right->start, path->slots[1] + 1, 1); in copy_for_split()
3792 struct btrfs_disk_key disk_key; in split_leaf() local
3888 btrfs_cpu_key_to_disk(&disk_key, ins_key); in split_leaf()
3890 btrfs_item_key(l, &disk_key, mid); in split_leaf()
3901 &disk_key, 0, l->start, 0, in split_leaf()
3912 ret = insert_ptr(trans, path, &disk_key, in split_leaf()
3926 ret = insert_ptr(trans, path, &disk_key, in split_leaf()
3938 fixup_low_keys(trans, path, &disk_key, 1); in split_leaf()
4048 struct btrfs_disk_key disk_key; in split_item() local
4076 btrfs_cpu_key_to_disk(&disk_key, new_key); in split_item()
4077 btrfs_set_item_key(leaf, &disk_key, slot); in split_item()
4188 struct btrfs_disk_key disk_key; in btrfs_truncate_item() local
4191 btrfs_item_key(leaf, &disk_key, slot); in btrfs_truncate_item()
4193 if (btrfs_disk_key_type(&disk_key) == BTRFS_EXTENT_DATA_KEY) { in btrfs_truncate_item()
4214 offset = btrfs_disk_key_offset(&disk_key); in btrfs_truncate_item()
4215 btrfs_set_disk_key_offset(&disk_key, offset + size_diff); in btrfs_truncate_item()
4216 btrfs_set_item_key(leaf, &disk_key, slot); in btrfs_truncate_item()
4218 fixup_low_keys(trans, path, &disk_key, 1); in btrfs_truncate_item()
4311 struct btrfs_disk_key disk_key; in setup_items_for_insert() local
4323 btrfs_cpu_key_to_disk(&disk_key, &batch->keys[0]); in setup_items_for_insert()
4324 fixup_low_keys(trans, path, &disk_key, 1); in setup_items_for_insert()
4375 btrfs_cpu_key_to_disk(&disk_key, &batch->keys[i]); in setup_items_for_insert()
4376 btrfs_set_item_key(leaf, &disk_key, slot + i); in setup_items_for_insert()
4550 struct btrfs_disk_key disk_key; in btrfs_del_ptr() local
4552 btrfs_node_key(parent, &disk_key, 0); in btrfs_del_ptr()
4553 fixup_low_keys(trans, path, &disk_key, level + 1); in btrfs_del_ptr()
4649 struct btrfs_disk_key disk_key; in btrfs_del_items() local
4651 btrfs_item_key(leaf, &disk_key, 0); in btrfs_del_items()
4652 fixup_low_keys(trans, path, &disk_key, 1); in btrfs_del_items()