Searched refs:alloc_offset (Results 1 – 5 of 5) sorted by relevance
1254 cache->alloc_offset = 0; in btrfs_load_block_group_zone_info()1260 cache->alloc_offset = last_alloc; in btrfs_load_block_group_zone_info()1278 cache->alloc_offset = alloc_offsets[0]; in btrfs_load_block_group_zone_info()1295 if (cache->alloc_offset > fs_info->zone_size) { in btrfs_load_block_group_zone_info()1298 cache->alloc_offset, cache->start); in btrfs_load_block_group_zone_info()1303 if (!ret && num_conventional && last_alloc > cache->alloc_offset) { in btrfs_load_block_group_zone_info()1306 logical, last_alloc, cache->alloc_offset); in btrfs_load_block_group_zone_info()1311 cache->meta_write_pointer = cache->alloc_offset + cache->start; in btrfs_load_block_group_zone_info()1327 unusable = cache->alloc_offset - cache->used; in btrfs_calc_zone_unusable()1328 free = cache->length - cache->alloc_offset; in btrfs_calc_zone_unusable()[all …]
204 u64 alloc_offset; member
2553 else if (offset >= block_group->alloc_offset) in __btrfs_add_free_space_zoned()2555 else if (offset + size <= block_group->alloc_offset) in __btrfs_add_free_space_zoned()2558 to_free = offset + size - block_group->alloc_offset; in __btrfs_add_free_space_zoned()2571 block_group->alloc_offset -= size; in __btrfs_add_free_space_zoned()2657 if (block_group->start + block_group->alloc_offset < in btrfs_remove_free_space()2659 block_group->alloc_offset = in btrfs_remove_free_space()2765 block_group->length - block_group->alloc_offset); in btrfs_dump_free_space()
3830 avail = block_group->length - block_group->alloc_offset; in do_allocation_zoned()3850 ffe_ctl->found_offset = start + block_group->alloc_offset; in do_allocation_zoned()3851 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
2660 cache->zone_unusable = cache->alloc_offset - cache->used; in btrfs_dec_block_group_ro()