Lines Matching refs:objectid

162 		if (block_group->key.objectid < cache->key.objectid) {  in btrfs_add_block_group_cache()
164 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache()
176 if (info->first_logical_byte > block_group->key.objectid) in btrfs_add_block_group_cache()
177 info->first_logical_byte = block_group->key.objectid; in btrfs_add_block_group_cache()
202 end = cache->key.objectid + cache->key.offset - 1; in block_group_cache_tree_search()
203 start = cache->key.objectid; in block_group_cache_tree_search()
206 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search()
222 if (bytenr == 0 && info->first_logical_byte > ret->key.objectid) in block_group_cache_tree_search()
223 info->first_logical_byte = ret->key.objectid; in block_group_cache_tree_search()
246 start = cache->key.objectid; in free_excluded_extents()
263 if (cache->key.objectid < BTRFS_SUPER_INFO_OFFSET) { in exclude_super_stripes()
264 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes()
266 ret = add_excluded_extent(root, cache->key.objectid, in exclude_super_stripes()
275 cache->key.objectid, bytenr, in exclude_super_stripes()
283 if (logical[nr] > cache->key.objectid + in exclude_super_stripes()
287 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes()
291 if (start < cache->key.objectid) { in exclude_super_stripes()
292 start = cache->key.objectid; in exclude_super_stripes()
296 cache->key.objectid + in exclude_super_stripes()
402 last = max_t(u64, block_group->key.objectid, BTRFS_SUPER_INFO_OFFSET); in caching_thread()
414 key.objectid = last; in caching_thread()
463 if (key.objectid < last) { in caching_thread()
464 key.objectid = last; in caching_thread()
473 if (key.objectid < block_group->key.objectid) { in caching_thread()
478 if (key.objectid >= block_group->key.objectid + in caching_thread()
486 key.objectid); in caching_thread()
488 last = key.objectid + in caching_thread()
491 last = key.objectid + key.offset; in caching_thread()
503 block_group->key.objectid + in caching_thread()
548 caching_ctl->progress = cache->key.objectid; in cache_block_group()
725 key.objectid = start; in btrfs_lookup_data_extent()
777 key.objectid = bytenr; in btrfs_lookup_extent_info()
794 if (key.objectid == bytenr && in btrfs_lookup_extent_info()
1015 BUG_ON(key.objectid != found_key.objectid); in convert_extent_item_v0()
1111 key.objectid = bytenr; in lookup_extent_data_ref()
1161 if (key.objectid != bytenr || in lookup_extent_data_ref()
1196 key.objectid = bytenr; in insert_extent_data_ref()
1371 key.objectid = bytenr; in lookup_tree_block_ref()
1404 key.objectid = bytenr; in insert_tree_block_ref()
1494 key.objectid = bytenr; in lookup_inline_extent_backref()
1531 if (key.objectid == bytenr && in lookup_inline_extent_backref()
1537 key.objectid = bytenr; in lookup_inline_extent_backref()
1644 key.objectid == bytenr && in lookup_inline_extent_backref()
2071 ins.objectid = node->bytenr; in run_delayed_data_ref()
2087 ref->objectid, ref->offset, in run_delayed_data_ref()
2092 ref_root, ref->objectid, in run_delayed_data_ref()
2098 ref_root, ref->objectid, in run_delayed_data_ref()
2149 key.objectid = node->bytenr; in run_delayed_extent_op()
2174 if (key.objectid == node->bytenr && in run_delayed_extent_op()
2183 key.objectid = node->bytenr; in run_delayed_extent_op()
2239 ins.objectid = node->bytenr; in run_delayed_tree_ref()
2902 u64 objectid, u64 offset, u64 bytenr) in check_delayed_ref() argument
2954 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2955 data_ref->objectid != objectid || in check_delayed_ref()
2969 u64 objectid, u64 offset, u64 bytenr) in check_committed_ref() argument
2980 key.objectid = bytenr; in check_committed_ref()
2997 if (key.objectid != bytenr || key.type != BTRFS_EXTENT_ITEM_KEY) in check_committed_ref()
3027 root->root_key.objectid || in check_committed_ref()
3028 btrfs_extent_data_ref_objectid(leaf, ref) != objectid || in check_committed_ref()
3039 u64 objectid, u64 offset, u64 bytenr) in btrfs_cross_ref_exist() argument
3050 ret = check_committed_ref(trans, root, path, objectid, in btrfs_cross_ref_exist()
3055 ret2 = check_delayed_ref(trans, root, path, objectid, in btrfs_cross_ref_exist()
3068 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
3129 parent, ref_root, key.objectid, in __btrfs_mod_ref()
3197 const u64 next_bytenr = cache->key.objectid + cache->key.offset; in next_block_group()
3447 cache->key.objectid); in btrfs_start_dirty_block_groups()
3589 cache->key.objectid); in btrfs_write_dirty_block_groups()
3636 &cache->io_ctl, path, cache->key.objectid); in btrfs_write_dirty_block_groups()
5655 byte_in_group = bytenr - cache->key.objectid; in update_block_group()
5736 bytenr = cache->key.objectid; in first_logical_byte()
5876 key.objectid = btrfs_file_extent_disk_bytenr(eb, item); in btrfs_exclude_logged_extents()
5878 __exclude_logged_extent(log, key.objectid, key.offset); in btrfs_exclude_logged_extents()
5990 start >= cache->key.objectid + cache->key.offset) { in unpin_extent_range()
5997 len = cache->key.objectid + cache->key.offset - start; in unpin_extent_range()
6151 if (key.objectid != bytenr) in __btrfs_free_extent()
6184 key.objectid = bytenr; in __btrfs_free_extent()
6203 if (key.objectid == bytenr && in __btrfs_free_extent()
6211 key.objectid = bytenr; in __btrfs_free_extent()
6260 key.objectid = bytenr; in __btrfs_free_extent()
6462 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
6465 parent, root->root_key.objectid, in btrfs_free_tree_block()
6477 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
6503 root->root_key.objectid); in btrfs_free_tree_block()
6743 ins->objectid = 0; in find_free_extent()
6826 search_start = block_group->key.objectid; in find_free_extent()
6887 used_block_group->key.objectid, in find_free_extent()
7033 block_group->key.objectid + block_group->key.offset) { in find_free_extent()
7051 ins->objectid = search_start; in find_free_extent()
7066 if (!ins->objectid && loop >= LOOP_CACHING_WAIT && have_caching_bg) in find_free_extent()
7069 if (!ins->objectid && ++index < BTRFS_NR_RAID_TYPES) in find_free_extent()
7080 if (!ins->objectid && loop < LOOP_NO_EMPTY_SIZE) { in find_free_extent()
7121 } else if (!ins->objectid) { in find_free_extent()
7123 } else if (ins->objectid) { in find_free_extent()
7161 cache->key.objectid, cache->key.offset, in dump_space_info()
7314 ins->objectid, ins->offset, in alloc_reserved_file_extent()
7319 ret = update_block_group(trans, root, ins->objectid, ins->offset, 1); in alloc_reserved_file_extent()
7322 ins->objectid, ins->offset); in alloc_reserved_file_extent()
7325 trace_btrfs_reserved_extent_alloc(root, ins->objectid, ins->offset); in alloc_reserved_file_extent()
7353 btrfs_free_and_pin_reserved_extent(root, ins->objectid, in alloc_reserved_tree_block()
7363 btrfs_free_and_pin_reserved_extent(root, ins->objectid, in alloc_reserved_tree_block()
7402 ins->objectid, num_bytes, in alloc_reserved_tree_block()
7408 ret = update_block_group(trans, root, ins->objectid, root->nodesize, in alloc_reserved_tree_block()
7412 ins->objectid, ins->offset); in alloc_reserved_tree_block()
7416 trace_btrfs_reserved_extent_alloc(root, ins->objectid, root->nodesize); in alloc_reserved_tree_block()
7429 ret = btrfs_add_delayed_data_ref(root->fs_info, trans, ins->objectid, in btrfs_alloc_reserved_file_extent()
7454 ret = __exclude_logged_extent(root, ins->objectid, ins->offset); in btrfs_alloc_logged_file_extent()
7459 block_group = btrfs_lookup_block_group(root->fs_info, ins->objectid); in btrfs_alloc_logged_file_extent()
7482 btrfs_set_buffer_lockdep_class(root->root_key.objectid, buf, level); in btrfs_init_new_buffer()
7490 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_init_new_buffer()
7613 buf = btrfs_init_new_buffer(trans, root, ins.objectid, level); in btrfs_alloc_tree_block()
7621 parent = ins.objectid; in btrfs_alloc_tree_block()
7646 ins.objectid, ins.offset, in btrfs_alloc_tree_block()
7660 btrfs_free_reserved_extent(root, ins.objectid, ins.offset, 0); in btrfs_alloc_tree_block()
7794 root->objectid, in account_leaf_items()
7942 root->objectid, in account_shared_subtree()
7995 btrfs_header_owner(eb) != root->root_key.objectid) in walk_down_proc()
8102 btrfs_set_buffer_lockdep_class(root->root_key.objectid, next, in do_walk_down()
8184 BUG_ON(root->root_key.objectid != in do_walk_down()
8200 root->root_key.objectid, level - 1, 0, 0); in do_walk_down()
8305 BUG_ON(root->root_key.objectid != in walk_up_proc()
8311 BUG_ON(root->root_key.objectid != in walk_up_proc()
8415 btrfs_debug(root->fs_info, "Drop subvolume %llu", root->objectid); in btrfs_drop_snapshot()
8586 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { in btrfs_drop_snapshot()
8600 root->root_key.objectid); in btrfs_drop_snapshot()
8658 BUG_ON(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); in btrfs_drop_subtree()
9106 if (found_key.objectid >= key->objectid && in find_first_block_group()
9146 last = block_group->key.objectid + block_group->key.offset; in btrfs_put_block_group_cache()
9298 cache->key.objectid = start; in btrfs_create_block_group_cache()
9336 key.objectid = 0; in btrfs_read_block_groups()
9361 cache = btrfs_create_block_group_cache(root, found_key.objectid, in btrfs_read_block_groups()
9388 key.objectid = found_key.objectid + found_key.offset; in btrfs_read_block_groups()
9422 found_key.objectid, in btrfs_read_block_groups()
9423 found_key.objectid + in btrfs_read_block_groups()
9457 if (btrfs_chunk_readonly(root, cache->key.objectid)) { in btrfs_read_block_groups()
9523 key.objectid, key.offset); in btrfs_create_pending_block_groups()
9699 block_group->key.objectid); in btrfs_remove_block_group()
9732 key.objectid = BTRFS_FREE_SPACE_OBJECTID; in btrfs_remove_block_group()
9733 key.offset = block_group->key.objectid; in btrfs_remove_block_group()
9753 if (root->fs_info->first_logical_byte == block_group->key.objectid) in btrfs_remove_block_group()
9982 start = block_group->key.objectid; in btrfs_delete_unused_bgs()
10030 block_group->key.objectid); in btrfs_delete_unused_bgs()
10103 if (cache->key.objectid >= (range->start + range->len)) { in btrfs_trim_fs()
10108 start = max(range->start, cache->key.objectid); in btrfs_trim_fs()
10110 cache->key.objectid + cache->key.offset); in btrfs_trim_fs()