Searched refs:alloc_offset (Results 1 – 5 of 5) sorted by relevance
1173 cache->alloc_offset = 0; in btrfs_load_block_group_zone_info()1179 cache->alloc_offset = last_alloc; in btrfs_load_block_group_zone_info()1197 cache->alloc_offset = alloc_offsets[0]; in btrfs_load_block_group_zone_info()1214 if (cache->alloc_offset > fs_info->zone_size) { in btrfs_load_block_group_zone_info()1217 cache->alloc_offset, cache->start); in btrfs_load_block_group_zone_info()1222 if (!ret && num_conventional && last_alloc > cache->alloc_offset) { in btrfs_load_block_group_zone_info()1225 logical, last_alloc, cache->alloc_offset); in btrfs_load_block_group_zone_info()1230 cache->meta_write_pointer = cache->alloc_offset + cache->start; in btrfs_load_block_group_zone_info()1246 unusable = cache->alloc_offset - cache->used; in btrfs_calc_zone_unusable()1247 free = cache->length - cache->alloc_offset; in btrfs_calc_zone_unusable()
203 u64 alloc_offset; member
2546 else if (offset >= block_group->alloc_offset) in __btrfs_add_free_space_zoned()2548 else if (offset + size <= block_group->alloc_offset) in __btrfs_add_free_space_zoned()2551 to_free = offset + size - block_group->alloc_offset; in __btrfs_add_free_space_zoned()2564 block_group->alloc_offset -= size; in __btrfs_add_free_space_zoned()2650 if (block_group->start + block_group->alloc_offset < in btrfs_remove_free_space()2652 block_group->alloc_offset = in btrfs_remove_free_space()2758 block_group->length - block_group->alloc_offset); in btrfs_dump_free_space()
3799 avail = block_group->length - block_group->alloc_offset; in do_allocation_zoned()3816 ffe_ctl->found_offset = start + block_group->alloc_offset; in do_allocation_zoned()3817 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
2597 cache->zone_unusable = cache->alloc_offset - cache->used; in btrfs_dec_block_group_ro()