Lines Matching refs:objectid

160 		if (block_group->key.objectid < cache->key.objectid) {  in btrfs_add_block_group_cache()
162 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache()
174 if (info->first_logical_byte > block_group->key.objectid) in btrfs_add_block_group_cache()
175 info->first_logical_byte = block_group->key.objectid; in btrfs_add_block_group_cache()
200 end = cache->key.objectid + cache->key.offset - 1; in block_group_cache_tree_search()
201 start = cache->key.objectid; in block_group_cache_tree_search()
204 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search()
220 if (bytenr == 0 && info->first_logical_byte > ret->key.objectid) in block_group_cache_tree_search()
221 info->first_logical_byte = ret->key.objectid; in block_group_cache_tree_search()
244 start = cache->key.objectid; in free_excluded_extents()
261 if (cache->key.objectid < BTRFS_SUPER_INFO_OFFSET) { in exclude_super_stripes()
262 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes()
264 ret = add_excluded_extent(root, cache->key.objectid, in exclude_super_stripes()
273 cache->key.objectid, bytenr, in exclude_super_stripes()
281 if (logical[nr] > cache->key.objectid + in exclude_super_stripes()
285 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes()
289 if (start < cache->key.objectid) { in exclude_super_stripes()
290 start = cache->key.objectid; in exclude_super_stripes()
294 cache->key.objectid + in exclude_super_stripes()
338 u64 start = block_group->key.objectid; in fragment_free_space()
422 last = max_t(u64, block_group->key.objectid, BTRFS_SUPER_INFO_OFFSET); in caching_thread()
443 key.objectid = last; in caching_thread()
493 if (key.objectid < last) { in caching_thread()
494 key.objectid = last; in caching_thread()
504 if (key.objectid < block_group->key.objectid) { in caching_thread()
509 if (key.objectid >= block_group->key.objectid + in caching_thread()
517 key.objectid); in caching_thread()
519 last = key.objectid + in caching_thread()
522 last = key.objectid + key.offset; in caching_thread()
535 block_group->key.objectid + in caching_thread()
594 caching_ctl->progress = cache->key.objectid; in cache_block_group()
787 key.objectid = start; in btrfs_lookup_data_extent()
839 key.objectid = bytenr; in btrfs_lookup_extent_info()
856 if (key.objectid == bytenr && in btrfs_lookup_extent_info()
1077 BUG_ON(key.objectid != found_key.objectid); in convert_extent_item_v0()
1173 key.objectid = bytenr; in lookup_extent_data_ref()
1223 if (key.objectid != bytenr || in lookup_extent_data_ref()
1258 key.objectid = bytenr; in insert_extent_data_ref()
1432 key.objectid = bytenr; in lookup_tree_block_ref()
1465 key.objectid = bytenr; in insert_tree_block_ref()
1555 key.objectid = bytenr; in lookup_inline_extent_backref()
1592 if (key.objectid == bytenr && in lookup_inline_extent_backref()
1598 key.objectid = bytenr; in lookup_inline_extent_backref()
1705 key.objectid == bytenr && in lookup_inline_extent_backref()
2170 ins.objectid = node->bytenr; in run_delayed_data_ref()
2186 ref->objectid, ref->offset, in run_delayed_data_ref()
2190 ref_root, ref->objectid, in run_delayed_data_ref()
2195 ref_root, ref->objectid, in run_delayed_data_ref()
2246 key.objectid = node->bytenr; in run_delayed_extent_op()
2271 if (key.objectid == node->bytenr && in run_delayed_extent_op()
2280 key.objectid = node->bytenr; in run_delayed_extent_op()
2336 ins.objectid = node->bytenr; in run_delayed_tree_ref()
3006 u64 objectid, u64 offset, u64 bytenr) in check_delayed_ref() argument
3053 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
3054 data_ref->objectid != objectid || in check_delayed_ref()
3068 u64 objectid, u64 offset, u64 bytenr) in check_committed_ref() argument
3079 key.objectid = bytenr; in check_committed_ref()
3096 if (key.objectid != bytenr || key.type != BTRFS_EXTENT_ITEM_KEY) in check_committed_ref()
3126 root->root_key.objectid || in check_committed_ref()
3127 btrfs_extent_data_ref_objectid(leaf, ref) != objectid || in check_committed_ref()
3138 u64 objectid, u64 offset, u64 bytenr) in btrfs_cross_ref_exist() argument
3149 ret = check_committed_ref(trans, root, path, objectid, in btrfs_cross_ref_exist()
3154 ret2 = check_delayed_ref(trans, root, path, objectid, in btrfs_cross_ref_exist()
3167 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
3228 parent, ref_root, key.objectid, in __btrfs_mod_ref()
3295 const u64 next_bytenr = cache->key.objectid + cache->key.offset; in next_block_group()
3564 cache->key.objectid); in btrfs_start_dirty_block_groups()
3706 cache->key.objectid); in btrfs_write_dirty_block_groups()
3753 &cache->io_ctl, path, cache->key.objectid); in btrfs_write_dirty_block_groups()
5887 byte_in_group = bytenr - cache->key.objectid; in update_block_group()
5971 bytenr = cache->key.objectid; in first_logical_byte()
6111 key.objectid = btrfs_file_extent_disk_bytenr(eb, item); in btrfs_exclude_logged_extents()
6113 __exclude_logged_extent(log, key.objectid, key.offset); in btrfs_exclude_logged_extents()
6256 start >= cache->key.objectid + cache->key.offset) { in unpin_extent_range()
6269 len = cache->key.objectid + cache->key.offset - start; in unpin_extent_range()
6373 block_group->key.objectid, in btrfs_finish_extent_commit()
6462 if (key.objectid != bytenr) in __btrfs_free_extent()
6495 key.objectid = bytenr; in __btrfs_free_extent()
6514 if (key.objectid == bytenr && in __btrfs_free_extent()
6522 key.objectid = bytenr; in __btrfs_free_extent()
6571 key.objectid = bytenr; in __btrfs_free_extent()
6760 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
6763 parent, root->root_key.objectid, in btrfs_free_tree_block()
6775 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
6801 root->root_key.objectid); in btrfs_free_tree_block()
7043 ins->objectid = 0; in find_free_extent()
7139 search_start = block_group->key.objectid; in find_free_extent()
7201 used_block_group->key.objectid, in find_free_extent()
7355 block_group->key.objectid + block_group->key.offset) { in find_free_extent()
7373 ins->objectid = search_start; in find_free_extent()
7392 if (!ins->objectid && loop >= LOOP_CACHING_WAIT && have_caching_bg) in find_free_extent()
7395 if (!ins->objectid && ++index < BTRFS_NR_RAID_TYPES) in find_free_extent()
7406 if (!ins->objectid && loop < LOOP_NO_EMPTY_SIZE) { in find_free_extent()
7478 } else if (!ins->objectid) { in find_free_extent()
7480 } else if (ins->objectid) { in find_free_extent()
7483 last_ptr->window_start = ins->objectid; in find_free_extent()
7527 cache->key.objectid, cache->key.offset, in dump_space_info()
7678 ret = update_block_group(trans, root, ins->objectid, ins->offset, 1); in alloc_reserved_file_extent()
7681 ins->objectid, ins->offset); in alloc_reserved_file_extent()
7684 trace_btrfs_reserved_extent_alloc(root, ins->objectid, ins->offset); in alloc_reserved_file_extent()
7711 btrfs_free_and_pin_reserved_extent(root, ins->objectid, in alloc_reserved_tree_block()
7721 btrfs_free_and_pin_reserved_extent(root, ins->objectid, in alloc_reserved_tree_block()
7758 ret = update_block_group(trans, root, ins->objectid, root->nodesize, in alloc_reserved_tree_block()
7762 ins->objectid, ins->offset); in alloc_reserved_tree_block()
7766 trace_btrfs_reserved_extent_alloc(root, ins->objectid, root->nodesize); in alloc_reserved_tree_block()
7780 ret = btrfs_add_delayed_data_ref(root->fs_info, trans, ins->objectid, in btrfs_alloc_reserved_file_extent()
7806 ret = __exclude_logged_extent(root, ins->objectid, ins->offset); in btrfs_alloc_logged_file_extent()
7811 block_group = btrfs_lookup_block_group(root->fs_info, ins->objectid); in btrfs_alloc_logged_file_extent()
7834 btrfs_set_buffer_lockdep_class(root->root_key.objectid, buf, level); in btrfs_init_new_buffer()
7842 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_init_new_buffer()
7962 buf = btrfs_init_new_buffer(trans, root, ins.objectid, level); in btrfs_alloc_tree_block()
7970 parent = ins.objectid; in btrfs_alloc_tree_block()
7995 ins.objectid, ins.offset, in btrfs_alloc_tree_block()
8009 btrfs_free_reserved_extent(root, ins.objectid, ins.offset, 0); in btrfs_alloc_tree_block()
8372 btrfs_header_owner(eb) != root->root_key.objectid) in walk_down_proc()
8479 btrfs_set_buffer_lockdep_class(root->root_key.objectid, next, in do_walk_down()
8563 BUG_ON(root->root_key.objectid != in do_walk_down()
8580 root->root_key.objectid, level - 1, 0); in do_walk_down()
8686 BUG_ON(root->root_key.objectid != in walk_up_proc()
8692 BUG_ON(root->root_key.objectid != in walk_up_proc()
8796 btrfs_debug(root->fs_info, "Drop subvolume %llu", root->objectid); in btrfs_drop_snapshot()
8949 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { in btrfs_drop_snapshot()
8963 root->root_key.objectid); in btrfs_drop_snapshot()
9013 BUG_ON(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); in btrfs_drop_subtree()
9461 if (found_key.objectid >= key->objectid && in find_first_block_group()
9501 last = block_group->key.objectid + block_group->key.offset; in btrfs_put_block_group_cache()
9653 cache->key.objectid = start; in btrfs_create_block_group_cache()
9691 key.objectid = 0; in btrfs_read_block_groups()
9716 cache = btrfs_create_block_group_cache(root, found_key.objectid, in btrfs_read_block_groups()
9743 key.objectid = found_key.objectid + found_key.offset; in btrfs_read_block_groups()
9777 found_key.objectid, in btrfs_read_block_groups()
9778 found_key.objectid + in btrfs_read_block_groups()
9812 if (btrfs_chunk_readonly(root, cache->key.objectid)) { in btrfs_read_block_groups()
9880 key.objectid, key.offset); in btrfs_create_pending_block_groups()
10082 block_group->key.objectid); in btrfs_remove_block_group()
10115 key.objectid = BTRFS_FREE_SPACE_OBJECTID; in btrfs_remove_block_group()
10116 key.offset = block_group->key.objectid; in btrfs_remove_block_group()
10136 if (root->fs_info->first_logical_byte == block_group->key.objectid) in btrfs_remove_block_group()
10406 block_group->key.objectid); in btrfs_delete_unused_bgs()
10417 start = block_group->key.objectid; in btrfs_delete_unused_bgs()
10472 block_group->key.objectid); in btrfs_delete_unused_bgs()
10659 if (cache->key.objectid >= (range->start + range->len)) { in btrfs_trim_fs()
10664 start = max(range->start, cache->key.objectid); in btrfs_trim_fs()
10666 cache->key.objectid + cache->key.offset); in btrfs_trim_fs()