Searched refs:zone_capacity (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/drivers/block/null_blk/ |
D | zoned.c | 77 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()
|
D | null_blk.h | 93 unsigned long zone_capacity; /* zone capacity in MB if device is zoned */ member
|
D | main.c | 229 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/ |
D | zoned.c | 1445 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 …]
|
D | block-group.h | 229 u64 zone_capacity; member
|
D | zoned.h | 417 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
|
D | free-space-cache.c | 2681 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()
|
D | extent-tree.c | 3838 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()
|
D | block-group.c | 2670 (cache->length - cache->zone_capacity); in btrfs_dec_block_group_ro()
|