Home
last modified time | relevance | path

Searched refs:chunk_sectors (Results 1 – 25 of 25) sorted by relevance

/linux-6.1.9/drivers/md/
Draid0.c84 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
85 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
131 if ((mddev->chunk_sectors << 9) % blksize) { in create_strip_zones()
134 mddev->chunk_sectors << 9, blksize); in create_strip_zones()
315 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector()
351 ~(sector_t)(mddev->chunk_sectors-1)); in raid0_size()
376 if (mddev->chunk_sectors == 0) { in raid0_run()
399 blk_queue_max_hw_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
400 blk_queue_max_write_zeroes_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
402 blk_queue_io_min(mddev->queue, mddev->chunk_sectors << 9); in raid0_run()
[all …]
Dmd-linear.c87 if (mddev->chunk_sectors) { in linear_conf()
89 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
90 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
270 seq_printf(seq, " %dk rounding", mddev->chunk_sectors / 2); in linear_status()
Ddm-zoned-target.c995 unsigned int chunk_sectors = dmz_zone_nr_sectors(dmz->metadata); in dmz_io_hints() local
1005 limits->max_discard_sectors = chunk_sectors; in dmz_io_hints()
1006 limits->max_hw_discard_sectors = chunk_sectors; in dmz_io_hints()
1007 limits->max_write_zeroes_sectors = chunk_sectors; in dmz_io_hints()
1010 limits->chunk_sectors = chunk_sectors; in dmz_io_hints()
1011 limits->max_sectors = chunk_sectors; in dmz_io_hints()
Draid5.c917 if (!sector_div(tmp_sec, conf->chunk_sectors)) in stripe_add_to_batch_list()
3006 : conf->chunk_sectors; in raid5_compute_sector()
3202 : conf->chunk_sectors; in raid5_compute_blocknr()
3533 if (first + conf->chunk_sectors * (count - 1) != last) in stripe_bio_overlaps()
3640 previous ? conf->prev_chunk_sectors : conf->chunk_sectors; in stripe_set_idx()
5417 unsigned int chunk_sectors; in in_chunk_boundary() local
5420 chunk_sectors = min(conf->chunk_sectors, conf->prev_chunk_sectors); in in_chunk_boundary()
5421 return chunk_sectors >= in in_chunk_boundary()
5422 ((sector & (chunk_sectors - 1)) + bio_sectors); in in_chunk_boundary()
5595 unsigned chunk_sects = mddev->chunk_sectors; in chunk_aligned_read()
[all …]
Ddm-raid.c716 mddev->new_chunk_sectors = mddev->chunk_sectors; in rs_set_cur()
729 mddev->chunk_sectors = mddev->new_chunk_sectors; in rs_set_new()
978 if (region_size < rs->md.chunk_sectors) { in validate_region_size()
1159 rs->md.new_chunk_sectors = rs->md.chunk_sectors = value; in parse_raid_params()
1489 if (rs->md.chunk_sectors) in parse_raid_params()
1490 max_io_len = rs->md.chunk_sectors; in parse_raid_params()
1539 uint32_t min_stripes = max(mddev->chunk_sectors, mddev->new_chunk_sectors) / 2; in rs_set_raid456_stripe_cache()
1879 rs->md.new_chunk_sectors != rs->md.chunk_sectors; in rs_is_layout_change()
2121 sb->stripe_sectors = cpu_to_le32(mddev->chunk_sectors); in super_sync()
2233 mddev->chunk_sectors = le32_to_cpu(sb->stripe_sectors); in super_init_validation()
[all …]
Draid5-ppl.c329 (data_sector >> ilog2(conf->chunk_sectors) == in ppl_log_stripe()
330 data_sector_last >> ilog2(conf->chunk_sectors)) && in ppl_log_stripe()
814 if ((pp_size >> 9) < conf->chunk_sectors) { in ppl_recover_entry()
823 (data_disks - 1) * conf->chunk_sectors + in ppl_recover_entry()
827 strip_sectors = conf->chunk_sectors; in ppl_recover_entry()
861 (disk * conf->chunk_sectors); in ppl_recover_entry()
Ddm-unstripe.c179 limits->chunk_sectors = uc->chunk_size; in unstripe_io_hints()
Draid5.h579 int chunk_sectors; member
Dmd.c1282 mddev->chunk_sectors = sb->chunk_size >> 9; in super_90_validate()
1311 mddev->new_chunk_sectors = mddev->chunk_sectors; in super_90_validate()
1461 sb->chunk_size = mddev->chunk_sectors << 9; in super_90_sync()
1792 mddev->chunk_sectors = le32_to_cpu(sb->chunksize); in super_1_validate()
1850 mddev->new_chunk_sectors = mddev->chunk_sectors; in super_1_validate()
1977 sb->chunksize = cpu_to_le32(mddev->chunk_sectors); in super_1_sync()
2633 (mddev->chunk_sectors != le32_to_cpu(sb->chunksize))) in does_sb_need_changing()
3976 mddev->new_chunk_sectors = mddev->chunk_sectors; in level_store()
3999 mddev->chunk_sectors = mddev->new_chunk_sectors; in level_store()
4201 mddev->chunk_sectors != mddev->new_chunk_sectors) in chunk_size_show()
[all …]
Draid10.c1828 dev_start = (first_stripe_index + 1) * mddev->chunk_sectors; in raid10_handle_discard()
1830 dev_start = first_stripe_index * mddev->chunk_sectors; in raid10_handle_discard()
1835 dev_end = (last_stripe_index + 1) * mddev->chunk_sectors; in raid10_handle_discard()
1837 dev_end = last_stripe_index * mddev->chunk_sectors; in raid10_handle_discard()
1939 seq_printf(seq, " %dK chunks", mddev->chunk_sectors / 2); in raid10_status()
3234 window_size = (chunks + extra_chunk) * conf->mddev->chunk_sectors; in raid10_set_cluster_sync_high()
3958 chunk = mddev->chunk_sectors; in setup_geo()
4105 blk_queue_io_opt(conf->mddev->queue, (conf->mddev->chunk_sectors << 9) * in raid10_set_io_opt()
4149 blk_queue_io_min(mddev->queue, mddev->chunk_sectors << 9); in raid10_run()
4379 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid10_takeover_raid0()
[all …]
Dmd.h339 int chunk_sectors; member
Ddm-table.c1690 zone_sectors = ti_limits.chunk_sectors; in dm_calculate_queue_limits()
1732 zone_sectors = limits->chunk_sectors; in dm_calculate_queue_limits()
Draid5-cache.c198 sector_div(sect, conf->chunk_sectors); in r5c_tree_index()
365 conf->chunk_sectors >> RAID5_STRIPE_SHIFT(conf))) in r5c_check_cached_full_stripe()
Draid1.c3270 if (mddev->chunk_sectors != mddev->new_chunk_sectors || in raid1_reshape()
3273 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid1_reshape()
/linux-6.1.9/block/
Dblk-settings.c44 lim->chunk_sectors = 0; in blk_set_default_limits()
161 void blk_queue_chunk_sectors(struct request_queue *q, unsigned int chunk_sectors) in blk_queue_chunk_sectors() argument
163 q->limits.chunk_sectors = chunk_sectors; in blk_queue_chunk_sectors()
219 max_sectors = min(q->limits.chunk_sectors, max_sectors); in blk_queue_max_zone_append_sectors()
606 if (b->chunk_sectors) in blk_stack_limits()
607 t->chunk_sectors = gcd(t->chunk_sectors, b->chunk_sectors); in blk_stack_limits()
631 if ((t->chunk_sectors << 9) & (t->physical_block_size - 1)) { in blk_stack_limits()
632 t->chunk_sectors = 0; in blk_stack_limits()
Dblk-merge.c174 if (lim->chunk_sectors) { in get_max_io_size()
177 lim->chunk_sectors)); in get_max_io_size()
596 if (!q->limits.chunk_sectors || in blk_rq_get_max_sectors()
601 blk_chunk_sectors_left(offset, q->limits.chunk_sectors)); in blk_rq_get_max_sectors()
Dblk.h319 return lim->chunk_sectors || bio->bi_vcnt != 1 || in bio_may_exceed_limits()
Dblk-zoned.c633 q->limits.chunk_sectors = 0; in disk_clear_zone_settings()
Dblk-core.c570 if (nr_sectors > q->limits.chunk_sectors) in blk_check_zone_append()
Dblk-sysfs.c156 return queue_var_show(q->limits.chunk_sectors, page); in queue_chunk_sectors_show()
/linux-6.1.9/drivers/char/
Dps3flash.c26 u64 chunk_sectors; member
38 start_sector, priv->chunk_sectors, in ps3flash_read_write_sectors()
118 sector = *pos / dev->bounce_size * priv->chunk_sectors; in ps3flash_read()
151 sector += priv->chunk_sectors; in ps3flash_read()
187 sector = *pos / dev->bounce_size * priv->chunk_sectors; in ps3flash_write()
226 sector += priv->chunk_sectors; in ps3flash_write()
376 priv->chunk_sectors = dev->bounce_size / dev->blk_size; in ps3flash_probe()
/linux-6.1.9/include/linux/
Dblkdev.h289 unsigned int chunk_sectors; member
679 return sector >> ilog2(disk->queue->limits.chunk_sectors); in disk_zone_no()
911 unsigned int chunk_sectors) in blk_chunk_sectors_left() argument
913 if (unlikely(!is_power_of_2(chunk_sectors))) in blk_chunk_sectors_left()
914 return chunk_sectors - sector_div(offset, chunk_sectors); in blk_chunk_sectors_left()
915 return chunk_sectors - (offset & (chunk_sectors - 1)); in blk_chunk_sectors_left()
1322 return q->limits.chunk_sectors; in bdev_zone_sectors()
/linux-6.1.9/include/uapi/linux/
Dublk_cmd.h200 __u32 chunk_sectors; member
/linux-6.1.9/Documentation/ABI/stable/
Dsysfs-block145 What: /sys/block/<disk>/queue/chunk_sectors
149 [RO] chunk_sectors has different meaning depending on the type
150 of the disk. For a RAID device (dm-raid), chunk_sectors
153 host-managed, chunk_sectors indicates the size in 512B sectors
/linux-6.1.9/drivers/block/
Dublk_drv.c208 blk_queue_chunk_sectors(q, p->chunk_sectors); in ublk_dev_param_basic_apply()