• Home
  • Raw
  • Download

Lines Matching refs:objectid

156 		if (block_group->key.objectid < cache->key.objectid) {  in btrfs_add_block_group_cache()
158 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache()
170 if (info->first_logical_byte > block_group->key.objectid) in btrfs_add_block_group_cache()
171 info->first_logical_byte = block_group->key.objectid; in btrfs_add_block_group_cache()
196 end = cache->key.objectid + cache->key.offset - 1; in block_group_cache_tree_search()
197 start = cache->key.objectid; in block_group_cache_tree_search()
200 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search()
216 if (bytenr == 0 && info->first_logical_byte > ret->key.objectid) in block_group_cache_tree_search()
217 info->first_logical_byte = ret->key.objectid; in block_group_cache_tree_search()
240 start = cache->key.objectid; in free_excluded_extents()
257 if (cache->key.objectid < BTRFS_SUPER_INFO_OFFSET) { in exclude_super_stripes()
258 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes()
260 ret = add_excluded_extent(root, cache->key.objectid, in exclude_super_stripes()
269 cache->key.objectid, bytenr, in exclude_super_stripes()
277 if (logical[nr] > cache->key.objectid + in exclude_super_stripes()
281 if (logical[nr] + stripe_len <= cache->key.objectid) in exclude_super_stripes()
285 if (start < cache->key.objectid) { in exclude_super_stripes()
286 start = cache->key.objectid; in exclude_super_stripes()
290 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()
461 if (key.objectid < block_group->key.objectid) { in caching_thread()
466 if (key.objectid >= block_group->key.objectid + in caching_thread()
474 key.objectid); in caching_thread()
476 last = key.objectid + in caching_thread()
479 last = key.objectid + key.offset; in caching_thread()
491 block_group->key.objectid + in caching_thread()
530 caching_ctl->progress = cache->key.objectid; in cache_block_group()
700 key.objectid = start; in btrfs_lookup_extent()
707 if (key.objectid == start && in btrfs_lookup_extent()
753 key.objectid = bytenr; in btrfs_lookup_extent_info()
757 key.objectid = bytenr; in btrfs_lookup_extent_info()
991 BUG_ON(key.objectid != found_key.objectid); in convert_extent_item_v0()
1087 key.objectid = bytenr; in lookup_extent_data_ref()
1137 if (key.objectid != bytenr || in lookup_extent_data_ref()
1172 key.objectid = bytenr; in insert_extent_data_ref()
1346 key.objectid = bytenr; in lookup_tree_block_ref()
1379 key.objectid = bytenr; in insert_tree_block_ref()
1469 key.objectid = bytenr; in lookup_inline_extent_backref()
1506 if (key.objectid == bytenr && in lookup_inline_extent_backref()
1619 key.objectid == bytenr && in lookup_inline_extent_backref()
2008 ins.objectid = node->bytenr; in run_delayed_data_ref()
2023 ref->objectid, ref->offset, in run_delayed_data_ref()
2028 ref_root, ref->objectid, in run_delayed_data_ref()
2034 ref_root, ref->objectid, in run_delayed_data_ref()
2085 key.objectid = node->bytenr; in run_delayed_extent_op()
2161 ins.objectid = node->bytenr; in run_delayed_tree_ref()
2743 u64 objectid, u64 offset, u64 bytenr) in check_delayed_ref() argument
2799 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2800 data_ref->objectid != objectid || data_ref->offset != offset) in check_delayed_ref()
2814 u64 objectid, u64 offset, u64 bytenr) in check_committed_ref() argument
2825 key.objectid = bytenr; in check_committed_ref()
2842 if (key.objectid != bytenr || key.type != BTRFS_EXTENT_ITEM_KEY) in check_committed_ref()
2872 root->root_key.objectid || in check_committed_ref()
2873 btrfs_extent_data_ref_objectid(leaf, ref) != objectid || in check_committed_ref()
2884 u64 objectid, u64 offset, u64 bytenr) in btrfs_cross_ref_exist() argument
2895 ret = check_committed_ref(trans, root, path, objectid, in btrfs_cross_ref_exist()
2900 ret2 = check_delayed_ref(trans, root, path, objectid, in btrfs_cross_ref_exist()
2913 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
2970 parent, ref_root, key.objectid, in __btrfs_mod_ref()
3199 last = cache->key.objectid + cache->key.offset; in btrfs_write_dirty_block_groups()
3232 last = cache->key.objectid + cache->key.offset; in btrfs_write_dirty_block_groups()
3284 last = cache->key.objectid + cache->key.offset; in btrfs_write_dirty_block_groups()
3516 BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID) { in btrfs_check_data_free_space()
5061 byte_in_group = bytenr - cache->key.objectid; in update_block_group()
5120 bytenr = cache->key.objectid; in first_logical_byte()
5291 start >= cache->key.objectid + cache->key.offset) { in unpin_extent_range()
5298 len = cache->key.objectid + cache->key.offset - start; in unpin_extent_range()
5419 if (key.objectid != bytenr) in __btrfs_free_extent()
5452 key.objectid = bytenr; in __btrfs_free_extent()
5471 if (key.objectid == bytenr && in __btrfs_free_extent()
5529 key.objectid = bytenr; in __btrfs_free_extent()
5718 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
5721 parent, root->root_key.objectid, in btrfs_free_tree_block()
5733 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
5905 ins->objectid = 0; in find_free_extent()
5989 search_start = block_group->key.objectid; in find_free_extent()
6048 last_ptr, num_bytes, used_block_group->key.objectid); in find_free_extent()
6180 used_block_group->key.objectid + used_block_group->key.offset) { in find_free_extent()
6198 ins->objectid = search_start; in find_free_extent()
6217 if (!ins->objectid && loop >= LOOP_CACHING_WAIT && have_caching_bg) in find_free_extent()
6220 if (!ins->objectid && ++index < BTRFS_NR_RAID_TYPES) in find_free_extent()
6231 if (!ins->objectid && loop < LOOP_NO_EMPTY_SIZE) { in find_free_extent()
6254 } else if (!ins->objectid) { in find_free_extent()
6256 } else if (ins->objectid) { in find_free_extent()
6295 (unsigned long long)cache->key.objectid, in dump_space_info()
6345 trace_btrfs_reserved_extent_alloc(root, ins->objectid, ins->offset); in btrfs_reserve_extent()
6452 ret = update_block_group(root, ins->objectid, ins->offset, 1); in alloc_reserved_file_extent()
6455 (unsigned long long)ins->objectid, in alloc_reserved_file_extent()
6525 ret = update_block_group(root, ins->objectid, root->leafsize, 1); in alloc_reserved_tree_block()
6528 (unsigned long long)ins->objectid, in alloc_reserved_tree_block()
6544 ret = btrfs_add_delayed_data_ref(root->fs_info, trans, ins->objectid, in btrfs_alloc_reserved_file_extent()
6564 u64 start = ins->objectid; in btrfs_alloc_logged_file_extent()
6567 block_group = btrfs_lookup_block_group(root->fs_info, ins->objectid); in btrfs_alloc_logged_file_extent()
6592 num_bytes = ins->objectid + ins->offset - in btrfs_alloc_logged_file_extent()
6623 btrfs_set_buffer_lockdep_class(root->root_key.objectid, buf, level); in btrfs_init_new_buffer()
6631 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_init_new_buffer()
6744 buf = btrfs_init_new_buffer(trans, root, ins.objectid, in btrfs_alloc_free_block()
6750 parent = ins.objectid; in btrfs_alloc_free_block()
6773 ins.objectid, in btrfs_alloc_free_block()
6902 btrfs_header_owner(eb) != root->root_key.objectid) in walk_down_proc()
7087 BUG_ON(root->root_key.objectid != in do_walk_down()
7093 root->root_key.objectid, level - 1, 0, 0); in do_walk_down()
7193 BUG_ON(root->root_key.objectid != in walk_up_proc()
7199 BUG_ON(root->root_key.objectid != in walk_up_proc()
7449 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { in btrfs_drop_snapshot()
7450 ret = btrfs_find_last_root(tree_root, root->root_key.objectid, in btrfs_drop_snapshot()
7463 root->root_key.objectid); in btrfs_drop_snapshot()
7503 BUG_ON(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); in btrfs_drop_subtree()
7923 if (found_key.objectid >= key->objectid && in find_first_block_group()
7963 last = block_group->key.objectid + block_group->key.offset; in btrfs_put_block_group_cache()
8065 key.objectid = 0; in btrfs_read_block_groups()
8128 key.objectid = found_key.objectid + found_key.offset; in btrfs_read_block_groups()
8134 found_key.objectid); in btrfs_read_block_groups()
8169 found_key.objectid, in btrfs_read_block_groups()
8170 found_key.objectid + in btrfs_read_block_groups()
8203 if (btrfs_chunk_readonly(root, cache->key.objectid)) in btrfs_read_block_groups()
8283 cache->key.objectid = chunk_offset; in btrfs_make_block_group()
8449 key.objectid = BTRFS_FREE_SPACE_OBJECTID; in btrfs_remove_block_group()
8450 key.offset = block_group->key.objectid; in btrfs_remove_block_group()
8469 if (root->fs_info->first_logical_byte == block_group->key.objectid) in btrfs_remove_block_group()
8582 if (cache->key.objectid >= (range->start + range->len)) { in btrfs_trim_fs()
8587 start = max(range->start, cache->key.objectid); in btrfs_trim_fs()
8589 cache->key.objectid + cache->key.offset); in btrfs_trim_fs()