Home
last modified time | relevance | path

Searched refs:alloc_offset (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dzoned.c1288 u64 alloc_offset; member
1309 info->alloc_offset = WP_MISSING_DEV; in btrfs_load_zone_info()
1319 info->alloc_offset = WP_CONVENTIONAL; in btrfs_load_zone_info()
1342 info->alloc_offset = WP_MISSING_DEV; in btrfs_load_zone_info()
1364 info->alloc_offset = WP_MISSING_DEV; in btrfs_load_zone_info()
1367 info->alloc_offset = 0; in btrfs_load_zone_info()
1370 info->alloc_offset = info->capacity; in btrfs_load_zone_info()
1374 info->alloc_offset = ((zone.wp - zone.start) << SECTOR_SHIFT); in btrfs_load_zone_info()
1388 if (info->alloc_offset == WP_MISSING_DEV) { in btrfs_load_block_group_single()
1395 bg->alloc_offset = info->alloc_offset; in btrfs_load_block_group_single()
[all …]
H A Dblock-group.h242 u64 alloc_offset; member
H A Dzoned.h400 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
H A Dfree-space-cache.c2704 initial = ((size == block_group->length) && (block_group->alloc_offset == 0)); in __btrfs_add_free_space_zoned()
2713 else if (offset >= block_group->alloc_offset) in __btrfs_add_free_space_zoned()
2715 else if (offset + size <= block_group->alloc_offset) in __btrfs_add_free_space_zoned()
2718 to_free = offset + size - block_group->alloc_offset; in __btrfs_add_free_space_zoned()
2733 block_group->alloc_offset -= size; in __btrfs_add_free_space_zoned()
2818 if (block_group->start + block_group->alloc_offset < in btrfs_remove_free_space()
2820 block_group->alloc_offset = in btrfs_remove_free_space()
2926 block_group->zone_capacity - block_group->alloc_offset, in btrfs_dump_free_space()
H A Dextent-tree.c3805 WARN_ON_ONCE(block_group->alloc_offset > block_group->zone_capacity); in do_allocation_zoned()
3806 avail = block_group->zone_capacity - block_group->alloc_offset; in do_allocation_zoned()
3844 ffe_ctl->found_offset = start + block_group->alloc_offset; in do_allocation_zoned()
3845 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
4183 u64 avail = block_group->zone_capacity - block_group->alloc_offset; in prepare_allocation_zoned()
H A Dblock-group.c3027 (cache->alloc_offset - cache->used - cache->pinned - in btrfs_dec_block_group_ro()
/openbmc/qemu/block/
H A Dqcow2-cluster.c965 m->alloc_offset + start->offset, in perform_cow()
973 m->alloc_offset + end->offset, in perform_cow()
996 ret = do_perform_cow_write(bs, m->alloc_offset, start->offset, &qiov); in perform_cow()
1001 ret = do_perform_cow_write(bs, m->alloc_offset, start->offset, &qiov); in perform_cow()
1008 ret = do_perform_cow_write(bs, m->alloc_offset, end->offset, &qiov); in perform_cow()
1034 uint64_t cluster_offset = m->alloc_offset; in qcow2_alloc_cluster_link_l2()
1133 qcow2_free_clusters(bs, m->alloc_offset, in qcow2_alloc_cluster_abort()
1305 .alloc_offset = host_cluster_offset, in calculate_l2_meta()
H A Dqcow2.h449 uint64_t alloc_offset; member
H A Dqcow2.c2544 uint64_t start_offset = m->alloc_offset + m->cow_start.offset; in handle_alloc_space()
4568 .alloc_offset = host_offset, in qcow2_co_truncate()