Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/block/null_blk/
Dzoned.c77 if (!dev->zone_capacity) in null_init_zoned_dev()
78 dev->zone_capacity = dev->zone_size; in null_init_zoned_dev()
80 if (dev->zone_capacity > dev->zone_size) { in null_init_zoned_dev()
82 dev->zone_capacity, dev->zone_size); in null_init_zoned_dev()
86 zone_capacity_sects = mb_to_sects(dev->zone_capacity); in null_init_zoned_dev()
Dnull_blk.h93 unsigned long zone_capacity; /* zone capacity in MB if device is zoned */ member
Dmain.c229 module_param_named(zone_capacity, g_zone_capacity, ulong, 0444);
230 MODULE_PARM_DESC(zone_capacity, "Zone capacity in MB when block device is zoned. Can be less than o…
423 NULLB_DEVICE_ATTR(zone_capacity, ulong, NULL);
686 dev->zone_capacity = g_zone_capacity; in null_alloc_dev()
/linux-6.1.9/fs/btrfs/
Dzoned.c1445 cache->zone_capacity = cache->length; in btrfs_load_block_group_zone_info()
1469 cache->zone_capacity = caps[0]; in btrfs_load_block_group_zone_info()
1510 cache->zone_capacity = min(caps[0], caps[1]); in btrfs_load_block_group_zone_info()
1533 if (cache->alloc_offset > cache->zone_capacity) { in btrfs_load_block_group_zone_info()
1536 cache->alloc_offset, cache->zone_capacity, in btrfs_load_block_group_zone_info()
1580 (cache->length - cache->zone_capacity); in btrfs_calc_zone_unusable()
1581 free = cache->zone_capacity - cache->alloc_offset; in btrfs_calc_zone_unusable()
2036 block_group->alloc_offset = block_group->zone_capacity; in do_zone_finish()
2135 block_group->start + block_group->zone_capacity) in btrfs_zone_finish_endio()
2158 if (!bg->seq_zone || eb->start + eb->len * 2 <= bg->start + bg->zone_capacity) in btrfs_schedule_zone_finish_bg()
[all …]
Dblock-group.h229 u64 zone_capacity; member
Dzoned.h417 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
Dfree-space-cache.c2681 WARN_ON(!initial && offset + size > block_group->zone_capacity); in __btrfs_add_free_space_zoned()
2690 to_free = block_group->zone_capacity; in __btrfs_add_free_space_zoned()
2714 (block_group->length - block_group->zone_capacity); in __btrfs_add_free_space_zoned()
2720 div_factor_fine(block_group->zone_capacity, in __btrfs_add_free_space_zoned()
2902 block_group->zone_capacity - block_group->alloc_offset, in btrfs_dump_free_space()
Dextent-tree.c3838 WARN_ON_ONCE(block_group->alloc_offset > block_group->zone_capacity); in do_allocation_zoned()
3839 avail = block_group->zone_capacity - block_group->alloc_offset; in do_allocation_zoned()
Dblock-group.c2670 (cache->length - cache->zone_capacity); in btrfs_dec_block_group_ro()