Searched refs:alloc_offset (Results 1 – 6 of 6) sorted by relevance
1458 cache->alloc_offset = last_alloc; in btrfs_load_block_group_zone_info()1473 cache->alloc_offset = alloc_offsets[0]; in btrfs_load_block_group_zone_info()1514 cache->alloc_offset = alloc_offsets[0]; in btrfs_load_block_group_zone_info()1531 if (cache->alloc_offset > fs_info->zone_size) { in btrfs_load_block_group_zone_info()1534 cache->alloc_offset, cache->start); in btrfs_load_block_group_zone_info()1538 if (cache->alloc_offset > cache->zone_capacity) { in btrfs_load_block_group_zone_info()1541 cache->alloc_offset, cache->zone_capacity, in btrfs_load_block_group_zone_info()1550 logical, last_alloc, cache->alloc_offset); in btrfs_load_block_group_zone_info()1584 unusable = (cache->alloc_offset - cache->used) + in btrfs_calc_zone_unusable()1586 free = cache->zone_capacity - cache->alloc_offset; in btrfs_calc_zone_unusable()[all …]
239 u64 alloc_offset; member
406 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
2700 else if (offset >= block_group->alloc_offset) in __btrfs_add_free_space_zoned()2702 else if (offset + size <= block_group->alloc_offset) in __btrfs_add_free_space_zoned()2705 to_free = offset + size - block_group->alloc_offset; in __btrfs_add_free_space_zoned()2718 block_group->alloc_offset -= size; in __btrfs_add_free_space_zoned()2802 if (block_group->start + block_group->alloc_offset < in btrfs_remove_free_space()2804 block_group->alloc_offset = in btrfs_remove_free_space()2910 block_group->zone_capacity - block_group->alloc_offset, in btrfs_dump_free_space()
3768 WARN_ON_ONCE(block_group->alloc_offset > block_group->zone_capacity); in do_allocation_zoned()3769 avail = block_group->zone_capacity - block_group->alloc_offset; in do_allocation_zoned()3789 ffe_ctl->found_offset = start + block_group->alloc_offset; in do_allocation_zoned()3790 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
2887 (cache->alloc_offset - cache->used) + in btrfs_dec_block_group_ro()
Completed in 32 milliseconds