Searched refs:zone_capacity (Results 1 – 9 of 9) sorted by relevance
/linux-6.6.21/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 | 98 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); 735 dev->zone_capacity = g_zone_capacity; in null_alloc_dev()
|
/linux-6.6.21/fs/btrfs/ |
D | zoned.c | 1455 cache->zone_capacity = cache->length; in btrfs_load_block_group_zone_info() 1479 cache->zone_capacity = caps[0]; in btrfs_load_block_group_zone_info() 1520 cache->zone_capacity = min(caps[0], caps[1]); in btrfs_load_block_group_zone_info() 1543 if (cache->alloc_offset > cache->zone_capacity) { in btrfs_load_block_group_zone_info() 1546 cache->alloc_offset, cache->zone_capacity, in btrfs_load_block_group_zone_info() 1590 (cache->length - cache->zone_capacity); in btrfs_calc_zone_unusable() 1591 free = cache->zone_capacity - cache->alloc_offset; in btrfs_calc_zone_unusable() 2143 block_group->alloc_offset = block_group->zone_capacity; in do_zone_finish() 2146 block_group->zone_capacity; in do_zone_finish() 2264 block_group->start + block_group->zone_capacity) in btrfs_zone_finish_endio() [all …]
|
D | block-group.h | 244 u64 zone_capacity; member
|
D | zoned.h | 400 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
|
D | free-space-cache.c | 2701 WARN_ON(!initial && offset + size > block_group->zone_capacity); in __btrfs_add_free_space_zoned() 2710 to_free = block_group->zone_capacity; in __btrfs_add_free_space_zoned() 2734 (block_group->length - block_group->zone_capacity); in __btrfs_add_free_space_zoned() 2740 mult_perc(block_group->zone_capacity, bg_reclaim_threshold)) { in __btrfs_add_free_space_zoned() 2921 block_group->zone_capacity - block_group->alloc_offset, in btrfs_dump_free_space()
|
D | extent-tree.c | 3786 WARN_ON_ONCE(block_group->alloc_offset > block_group->zone_capacity); in do_allocation_zoned() 3787 avail = block_group->zone_capacity - block_group->alloc_offset; in do_allocation_zoned() 4164 u64 avail = block_group->zone_capacity - block_group->alloc_offset; in prepare_allocation_zoned()
|
D | block-group.c | 3010 (cache->length - cache->zone_capacity); in btrfs_dec_block_group_ro()
|