Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/block/null_blk/
Dzoned.c68 if (!dev->zone_capacity) in null_init_zoned_dev()
69 dev->zone_capacity = dev->zone_size; in null_init_zoned_dev()
71 if (dev->zone_capacity > dev->zone_size) { in null_init_zoned_dev()
73 dev->zone_capacity, dev->zone_size); in null_init_zoned_dev()
82 if (dev->zone_capacity != dev->zone_size && in null_init_zoned_dev()
88 zone_capacity_sects = mb_to_sects(dev->zone_capacity); in null_init_zoned_dev()
Dnull_blk.h81 unsigned long zone_capacity; /* zone capacity in MB if device is zoned */ member
Dmain.c245 module_param_named(zone_capacity, g_zone_capacity, ulong, 0444);
246 MODULE_PARM_DESC(zone_capacity, "Zone capacity in MB when block device is zoned. Can be less than o…
460 NULLB_DEVICE_ATTR(zone_capacity, ulong, NULL);
785 dev->zone_capacity = g_zone_capacity; in null_alloc_dev()
/linux-6.12.1/fs/btrfs/
Dzoned.c1379 bg->zone_capacity = info->capacity; in btrfs_load_block_group_single()
1397 bg->zone_capacity = min_not_zero(zone_info[0].capacity, zone_info[1].capacity); in btrfs_load_block_group_dup()
1443 bg->zone_capacity = min_not_zero(zone_info[0].capacity, zone_info[1].capacity); in btrfs_load_block_group_raid1()
1501 bg->zone_capacity += zone_info[i].capacity; in btrfs_load_block_group_raid0()
1535 bg->zone_capacity += zone_info[i].capacity; in btrfs_load_block_group_raid10()
1602 cache->zone_capacity = cache->length; in btrfs_load_block_group_zone_info()
1657 cache->alloc_offset = cache->zone_capacity; in btrfs_load_block_group_zone_info()
1671 if (cache->alloc_offset > cache->zone_capacity) { in btrfs_load_block_group_zone_info()
1674 cache->alloc_offset, cache->zone_capacity, in btrfs_load_block_group_zone_info()
1715 (cache->length - cache->zone_capacity); in btrfs_calc_zone_unusable()
[all …]
Dblock-group.h259 u64 zone_capacity; member
Dzoned.h405 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
Dfree-space-cache.c2706 WARN_ON(!initial && offset + size > block_group->zone_capacity); in __btrfs_add_free_space_zoned()
2713 to_free = block_group->zone_capacity; in __btrfs_add_free_space_zoned()
2738 (block_group->length - block_group->zone_capacity); in __btrfs_add_free_space_zoned()
2744 mult_perc(block_group->zone_capacity, bg_reclaim_threshold)) { in __btrfs_add_free_space_zoned()
2927 block_group->zone_capacity - block_group->alloc_offset, in btrfs_dump_free_space()
Dextent-tree.c3936 WARN_ON_ONCE(block_group->alloc_offset > block_group->zone_capacity); in do_allocation_zoned()
3937 avail = block_group->zone_capacity - block_group->alloc_offset; in do_allocation_zoned()
4314 u64 avail = block_group->zone_capacity - block_group->alloc_offset; in prepare_allocation_zoned()
Dblock-group.c3062 (cache->length - cache->zone_capacity); in btrfs_dec_block_group_ro()
/linux-6.12.1/block/
Dblk-zoned.c367 return offset_in_zone >= disk->zone_capacity; in disk_zone_is_full()
1483 disk->zone_capacity = 0; in disk_free_zone_resources()
1528 unsigned int zone_capacity; member
1546 disk->zone_capacity = args->zone_capacity; in disk_update_zone_resources()
1641 if (!args->zone_capacity) in blk_revalidate_seq_zone()
1642 args->zone_capacity = zone->capacity; in blk_revalidate_seq_zone()
1645 } else if (zone->capacity != args->zone_capacity) { in blk_revalidate_seq_zone()
/linux-6.12.1/include/linux/
Dblkdev.h195 unsigned int zone_capacity; member