Lines Matching refs:found_key
211 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local
245 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
247 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_bitmaps()
248 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps()
249 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_bitmaps()
252 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in convert_free_space_to_bitmaps()
255 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
256 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
257 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
259 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
261 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
347 struct btrfs_key key, found_key; in convert_free_space_to_extents() local
380 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_extents()
382 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_extents()
383 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_extents()
384 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_extents()
387 } else if (found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in convert_free_space_to_extents()
392 ASSERT(found_key.objectid >= start); in convert_free_space_to_extents()
393 ASSERT(found_key.objectid < end); in convert_free_space_to_extents()
394 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents()
396 bitmap_pos = div_u64(found_key.objectid - start, in convert_free_space_to_extents()
401 found_key.offset); in convert_free_space_to_extents()
1418 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1454 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in remove_block_group_free_space()
1456 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in remove_block_group_free_space()
1457 ASSERT(found_key.objectid == block_group->start); in remove_block_group_free_space()
1458 ASSERT(found_key.offset == block_group->length); in remove_block_group_free_space()
1463 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY || in remove_block_group_free_space()
1464 found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in remove_block_group_free_space()
1465 ASSERT(found_key.objectid >= start); in remove_block_group_free_space()
1466 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
1467 ASSERT(found_key.objectid + found_key.offset <= end); in remove_block_group_free_space()