Lines Matching refs:found_key

193 	struct btrfs_key key, found_key;  in convert_free_space_to_bitmaps()  local
227 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
229 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_bitmaps()
230 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps()
231 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_bitmaps()
234 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in convert_free_space_to_bitmaps()
237 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
238 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
239 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
241 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
243 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
331 struct btrfs_key key, found_key; in convert_free_space_to_extents() local
364 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_extents()
366 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_extents()
367 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_extents()
368 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_extents()
371 } else if (found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in convert_free_space_to_extents()
376 ASSERT(found_key.objectid >= start); in convert_free_space_to_extents()
377 ASSERT(found_key.objectid < end); in convert_free_space_to_extents()
378 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents()
380 bitmap_pos = div_u64(found_key.objectid - start, in convert_free_space_to_extents()
385 found_key.offset); in convert_free_space_to_extents()
1324 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1360 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in remove_block_group_free_space()
1362 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in remove_block_group_free_space()
1363 ASSERT(found_key.objectid == block_group->start); in remove_block_group_free_space()
1364 ASSERT(found_key.offset == block_group->length); in remove_block_group_free_space()
1369 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY || in remove_block_group_free_space()
1370 found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in remove_block_group_free_space()
1371 ASSERT(found_key.objectid >= start); in remove_block_group_free_space()
1372 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
1373 ASSERT(found_key.objectid + found_key.offset <= end); in remove_block_group_free_space()