Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/md/
Draid0.c88 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
89 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
135 if ((mddev->chunk_sectors << 9) % blksize) { in create_strip_zones()
138 mddev->chunk_sectors << 9, blksize); in create_strip_zones()
319 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector()
355 ~(sector_t)(mddev->chunk_sectors-1)); in raid0_size()
367 if (mddev->chunk_sectors == 0) { in raid0_run()
386 blk_queue_max_hw_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
387 blk_queue_max_write_same_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
388 blk_queue_max_write_zeroes_sectors(mddev->queue, mddev->chunk_sectors); in raid0_run()
[all …]
Dmd-linear.c88 if (mddev->chunk_sectors) { in linear_conf()
90 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
91 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
283 seq_printf(seq, " %dk rounding", mddev->chunk_sectors / 2); in linear_status()
Ddm-zoned-target.c999 unsigned int chunk_sectors = dmz_zone_nr_sectors(dmz->metadata); in dmz_io_hints() local
1009 limits->max_discard_sectors = chunk_sectors; in dmz_io_hints()
1010 limits->max_hw_discard_sectors = chunk_sectors; in dmz_io_hints()
1011 limits->max_write_zeroes_sectors = chunk_sectors; in dmz_io_hints()
1014 limits->chunk_sectors = chunk_sectors; in dmz_io_hints()
1015 limits->max_sectors = chunk_sectors; in dmz_io_hints()
Draid5.c827 if (!sector_div(tmp_sec, conf->chunk_sectors)) in stripe_add_to_batch_list()
2926 : conf->chunk_sectors; in raid5_compute_sector()
3122 : conf->chunk_sectors; in raid5_compute_blocknr()
3461 if (first + conf->chunk_sectors * (count - 1) != last) in add_stripe_bio()
3536 previous ? conf->prev_chunk_sectors : conf->chunk_sectors; in stripe_set_idx()
5309 unsigned int chunk_sectors; in in_chunk_boundary() local
5314 chunk_sectors = min(conf->chunk_sectors, conf->prev_chunk_sectors); in in_chunk_boundary()
5315 return chunk_sectors >= in in_chunk_boundary()
5316 ((sector & (chunk_sectors - 1)) + bio_sectors); in in_chunk_boundary()
5486 unsigned chunk_sects = mddev->chunk_sectors; in chunk_aligned_read()
[all …]
Ddm-raid.c717 mddev->new_chunk_sectors = mddev->chunk_sectors; in rs_set_cur()
730 mddev->chunk_sectors = mddev->new_chunk_sectors; in rs_set_new()
979 if (region_size < rs->md.chunk_sectors) { in validate_region_size()
1160 rs->md.new_chunk_sectors = rs->md.chunk_sectors = value; in parse_raid_params()
1490 if (rs->md.chunk_sectors) in parse_raid_params()
1491 max_io_len = rs->md.chunk_sectors; in parse_raid_params()
1540 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.c328 (data_sector >> ilog2(conf->chunk_sectors) == in ppl_log_stripe()
329 data_sector_last >> ilog2(conf->chunk_sectors)) && in ppl_log_stripe()
824 if ((pp_size >> 9) < conf->chunk_sectors) { in ppl_recover_entry()
833 (data_disks - 1) * conf->chunk_sectors + in ppl_recover_entry()
837 strip_sectors = conf->chunk_sectors; in ppl_recover_entry()
871 (disk * conf->chunk_sectors); in ppl_recover_entry()
Ddm-unstripe.c175 limits->chunk_sectors = uc->chunk_size; in unstripe_io_hints()
Draid5.h567 int chunk_sectors; member
Dmd.c1326 mddev->chunk_sectors = sb->chunk_size >> 9; in super_90_validate()
1355 mddev->new_chunk_sectors = mddev->chunk_sectors; in super_90_validate()
1505 sb->chunk_size = mddev->chunk_sectors << 9; in super_90_sync()
1839 mddev->chunk_sectors = le32_to_cpu(sb->chunksize); in super_1_validate()
1897 mddev->new_chunk_sectors = mddev->chunk_sectors; in super_1_validate()
2024 sb->chunksize = cpu_to_le32(mddev->chunk_sectors); in super_1_sync()
2675 (mddev->chunk_sectors != le32_to_cpu(sb->chunksize))) in does_sb_need_changing()
4024 mddev->new_chunk_sectors = mddev->chunk_sectors; in level_store()
4047 mddev->chunk_sectors = mddev->new_chunk_sectors; in level_store()
4249 mddev->chunk_sectors != mddev->new_chunk_sectors) in chunk_size_show()
[all …]
Draid10.c1544 seq_printf(seq, " %dK chunks", mddev->chunk_sectors / 2); in raid10_status()
2845 window_size = (chunks + extra_chunk) * conf->mddev->chunk_sectors; in raid10_set_cluster_sync_high()
3569 chunk = mddev->chunk_sectors; in setup_geo()
3716 blk_queue_io_opt(conf->mddev->queue, (conf->mddev->chunk_sectors << 9) * in raid10_set_io_opt()
3761 mddev->chunk_sectors); in raid10_run()
3764 blk_queue_io_min(mddev->queue, mddev->chunk_sectors << 9); in raid10_run()
4005 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid10_takeover_raid0()
4875 mddev->chunk_sectors = 1 << conf->geo.chunk_shift; in raid10_finish_reshape()
Dmd.h314 int chunk_sectors; member
Ddm-table.c1502 zone_sectors = ti_limits.chunk_sectors; in dm_calculate_queue_limits()
1544 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.c3235 if (mddev->chunk_sectors != mddev->new_chunk_sectors || in raid1_reshape()
3238 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid1_reshape()
/kernel/linux/linux-5.10/block/
Dblk-settings.c48 lim->chunk_sectors = 0; in blk_set_default_limits()
180 void blk_queue_chunk_sectors(struct request_queue *q, unsigned int chunk_sectors) in blk_queue_chunk_sectors() argument
182 q->limits.chunk_sectors = chunk_sectors; in blk_queue_chunk_sectors()
238 max_sectors = min(q->limits.chunk_sectors, max_sectors); in blk_queue_max_zone_append_sectors()
560 if (b->chunk_sectors) in blk_stack_limits()
561 t->chunk_sectors = gcd(t->chunk_sectors, b->chunk_sectors); in blk_stack_limits()
585 if ((t->chunk_sectors << 9) & (t->physical_block_size - 1)) { in blk_stack_limits()
586 t->chunk_sectors = 0; in blk_stack_limits()
Dblk-merge.c326 if (!q->limits.chunk_sectors && in __blk_queue_split()
Dblk-sysfs.c151 return queue_var_show(q->limits.chunk_sectors, page); in queue_chunk_sectors_show()
Dblk-core.c794 if (nr_sectors > q->limits.chunk_sectors) in blk_check_zone_append()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/linux/
Dblkdev.h333 unsigned int chunk_sectors; member
739 return blk_queue_is_zoned(q) ? q->limits.chunk_sectors : 0; in blk_queue_zone_sectors()
753 return sector >> ilog2(q->limits.chunk_sectors); in blk_queue_zone_no()
1096 unsigned int chunk_sectors) in blk_max_size_offset() argument
1098 if (!chunk_sectors) { in blk_max_size_offset()
1099 if (q->limits.chunk_sectors) in blk_max_size_offset()
1100 chunk_sectors = q->limits.chunk_sectors; in blk_max_size_offset()
1105 if (likely(is_power_of_2(chunk_sectors))) in blk_max_size_offset()
1106 chunk_sectors -= offset & (chunk_sectors - 1); in blk_max_size_offset()
1108 chunk_sectors -= sector_div(offset, chunk_sectors); in blk_max_size_offset()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-block298 What: /sys/block/<disk>/queue/chunk_sectors
302 chunk_sectors has different meaning depending on the type
303 of the disk. For a RAID device (dm-raid), chunk_sectors
306 host-aware or host-managed, chunk_sectors indicates the
/kernel/linux/linux-5.10/Documentation/block/
Dqueue-sysfs.rst18 chunk_sectors (RO)
21 For a RAID device (dm-raid), chunk_sectors indicates the size in 512B sectors
23 or host-managed, chunk_sectors indicates the size in 512B sectors of the zones