Lines Matching refs:found_key
212 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local
246 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
248 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_bitmaps()
249 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps()
250 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_bitmaps()
253 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in convert_free_space_to_bitmaps()
256 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
257 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
258 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
260 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
262 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
350 struct btrfs_key key, found_key; in convert_free_space_to_extents() local
383 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_extents()
385 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_extents()
386 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_extents()
387 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_extents()
390 } else if (found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in convert_free_space_to_extents()
395 ASSERT(found_key.objectid >= start); in convert_free_space_to_extents()
396 ASSERT(found_key.objectid < end); in convert_free_space_to_extents()
397 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents()
399 bitmap_pos = div_u64(found_key.objectid - start, in convert_free_space_to_extents()
404 found_key.offset); in convert_free_space_to_extents()
1353 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1389 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in remove_block_group_free_space()
1391 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in remove_block_group_free_space()
1392 ASSERT(found_key.objectid == block_group->start); in remove_block_group_free_space()
1393 ASSERT(found_key.offset == block_group->length); in remove_block_group_free_space()
1398 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY || in remove_block_group_free_space()
1399 found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in remove_block_group_free_space()
1400 ASSERT(found_key.objectid >= start); in remove_block_group_free_space()
1401 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
1402 ASSERT(found_key.objectid + found_key.offset <= end); in remove_block_group_free_space()