Lines Matching refs:found_key
207 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local
241 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
243 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_bitmaps()
244 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps()
245 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_bitmaps()
248 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in convert_free_space_to_bitmaps()
251 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
252 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
253 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
255 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
257 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
345 struct btrfs_key key, found_key; in convert_free_space_to_extents() local
378 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_extents()
380 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_extents()
381 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_extents()
382 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_extents()
385 } else if (found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in convert_free_space_to_extents()
390 ASSERT(found_key.objectid >= start); in convert_free_space_to_extents()
391 ASSERT(found_key.objectid < end); in convert_free_space_to_extents()
392 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents()
394 bitmap_pos = div_u64(found_key.objectid - start, in convert_free_space_to_extents()
399 found_key.offset); in convert_free_space_to_extents()
1348 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1384 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in remove_block_group_free_space()
1386 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in remove_block_group_free_space()
1387 ASSERT(found_key.objectid == block_group->start); in remove_block_group_free_space()
1388 ASSERT(found_key.offset == block_group->length); in remove_block_group_free_space()
1393 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY || in remove_block_group_free_space()
1394 found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in remove_block_group_free_space()
1395 ASSERT(found_key.objectid >= start); in remove_block_group_free_space()
1396 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
1397 ASSERT(found_key.objectid + found_key.offset <= end); in remove_block_group_free_space()