Home
last modified time | relevance | path

Searched refs:zone_size (Results 1 – 13 of 13) sorted by relevance

/linux/fs/adfs/
H A Dmap.c312 unsigned int zone, zone_size; in adfs_map_layout() local
315 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_map_layout()
320 dm[0].dm_endbit = 32 + zone_size; in adfs_map_layout()
324 dm[zone].dm_startblk = zone * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout()
326 dm[zone].dm_endbit = 32 + zone_size; in adfs_map_layout()
330 size -= (nzones - 1) * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout()
360 unsigned int map_addr, zone_size, nzones; in adfs_read_map() local
364 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_read_map()
370 asb->s_ids_per_zone = zone_size / (asb->s_idlen + 1); in adfs_read_map()
372 map_addr = (nzones >> 1) * zone_size - in adfs_read_map()
/linux/fs/btrfs/
H A Dzoned.c197 const sector_t zone_sectors = device->fs_info->zone_size >> SECTOR_SHIFT; in emulate_report_zones()
239 ASSERT(IS_ALIGNED(pos, zinfo->zone_size)); in btrfs_get_dev_zones()
320 fs_info->zone_size = btrfs_dev_extent_length(leaf, dext); in calculate_emulated_zone_size()
381 if (!fs_info->zone_size) { in btrfs_get_dev_zone_info()
387 ASSERT(fs_info->zone_size); in btrfs_get_dev_zone_info()
388 zone_sectors = fs_info->zone_size >> SECTOR_SHIFT; in btrfs_get_dev_zone_info()
394 zone_info->zone_size = zone_sectors << SECTOR_SHIFT; in btrfs_get_dev_zone_info()
397 if (zone_info->zone_size > BTRFS_MAX_ZONE_SIZE) { in btrfs_get_dev_zone_info()
401 zone_info->zone_size, BTRFS_MAX_ZONE_SIZE); in btrfs_get_dev_zone_info()
404 } else if (zone_info->zone_size < BTRFS_MIN_ZONE_SIZE) { in btrfs_get_dev_zone_info()
[all …]
H A Dzoned.h36 u64 zone_size; member
327 return fs_info->zone_size == in btrfs_check_device_zone_type()
347 u64 zone_size; in btrfs_can_zone_reset() local
352 zone_size = device->zone_info->zone_size; in btrfs_can_zone_reset()
353 if (!IS_ALIGNED(physical, zone_size) || !IS_ALIGNED(length, zone_size)) in btrfs_can_zone_reset()
H A Dfs.h822 u64 zone_size; member
958 return IS_ENABLED(CONFIG_BLK_DEV_ZONED) && fs_info->zone_size > 0; in btrfs_is_zoned()
H A Dvolumes.c1616 u64 zone_size = device->zone_info->zone_size; in dev_extent_hole_check_zoned() local
1621 ASSERT(IS_ALIGNED(*hole_start, zone_size)); in dev_extent_hole_check_zoned()
1648 *hole_start += zone_size; in dev_extent_hole_check_zoned()
1649 *hole_size -= zone_size; in dev_extent_hole_check_zoned()
1760 !IS_ALIGNED(num_bytes, device->zone_info->zone_size)); in find_free_dev_extent()
5232 u64 zone_size = fs_devices->fs_info->zone_size; in init_alloc_chunk_ctl_policy_zoned() local
5236 u64 min_chunk_size = min_data_stripes * zone_size; in init_alloc_chunk_ctl_policy_zoned()
5239 ctl->max_stripe_size = zone_size; in init_alloc_chunk_ctl_policy_zoned()
5242 zone_size); in init_alloc_chunk_ctl_policy_zoned()
5255 zone_size), in init_alloc_chunk_ctl_policy_zoned()
[all …]
H A Dspace-info.c203 return fs_info->zone_size; in calc_chunk_size()
434 avail = ALIGN_DOWN(avail, fs_info->zone_size); in calc_available_free_space()
H A Dbio.c445 u64 zone_start = round_down(physical, dev->fs_info->zone_size); in btrfs_submit_dev_bio()
/linux/drivers/mtd/
H A Dsm_ftl.c196 WARN_ON(block >= ftl->zone_size); in sm_mkoffset()
578 ftl->zone_size = 256; in sm_get_media_info()
587 ftl->zone_size = 512; in sm_get_media_info()
597 ftl->zone_size = 256; in sm_get_media_info()
604 ftl->zone_size = 512; in sm_get_media_info()
610 ftl->zone_size = 1024; in sm_get_media_info()
620 ftl->zone_size = 1024; in sm_get_media_info()
688 for (block = 0 ; block < ftl->zone_size - ftl->max_lba ; block++) { in sm_find_cis()
772 if (kfifo_alloc(&zone->free_sectors, ftl->zone_size * 2, GFP_KERNEL)) { in sm_init_zone()
778 for (block = 0 ; block < ftl->zone_size ; block++) { in sm_init_zone()
[all …]
H A Dsm_ftl.h33 int zone_size; /* zone size in blocks */ member
/linux/drivers/block/null_blk/
H A Dnull_blk.h80 unsigned long zone_size; /* zone size in MB if device is zoned */ member
/linux/drivers/md/
H A Draid0.c38 sector_t zone_size = 0; in dump_zones() local
54 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones()
58 (unsigned long long)zone_size>>1); in dump_zones()
/linux/Documentation/block/
H A Dnull_blk.rst146 zone_size=[MB]: Default: 256
/linux/drivers/nvme/host/
H A Dnvme.h1071 u64 zone_size; member