/linux/drivers/md/bcache/ |
H A D | writeback.h | 62 do_div(offset, d->stripe_size); in offset_to_stripe() 91 if (nr_sectors <= dc->disk.stripe_size) in bcache_dev_stripe_dirty() 94 nr_sectors -= dc->disk.stripe_size; in bcache_dev_stripe_dirty()
|
H A D | writeback.c | 613 stripe_offset = offset & (d->stripe_size - 1); in bcache_dev_sectors_dirty_add() 617 d->stripe_size - stripe_offset); in bcache_dev_sectors_dirty_add() 627 if (sectors_dirty == d->stripe_size) { in bcache_dev_sectors_dirty_add() 676 stripe * dc->disk.stripe_size, 0); in refill_full_stripes() 680 next_stripe * dc->disk.stripe_size, 0), in refill_full_stripes()
|
H A D | super.c | 917 d->stripe_size = bdev_io_opt(cached_bdev) >> SECTOR_SHIFT; in bcache_device_init() 920 if (!d->stripe_size) in bcache_device_init() 921 d->stripe_size = 1 << 31; in bcache_device_init() 922 else if (d->stripe_size < BCH_MIN_STRIPE_SZ) in bcache_device_init() 923 d->stripe_size = roundup(BCH_MIN_STRIPE_SZ, d->stripe_size); in bcache_device_init() 925 n = DIV_ROUND_UP_ULL(sectors, d->stripe_size); in bcache_device_init()
|
H A D | sysfs.c | 131 read_attribute(stripe_size); 258 sysfs_hprint(stripe_size, ((uint64_t)dc->disk.stripe_size) << 9); in SHOW()
|
H A D | bcache.h | 270 unsigned int stripe_size; member
|
/linux/drivers/md/ |
H A D | raid0.c | 453 unsigned int stripe_size; in raid0_handle_discard() local 481 stripe_size = zone->nb_dev * mddev->chunk_sectors; in raid0_handle_discard() 484 sector_div(first_stripe_index, stripe_size); in raid0_handle_discard() 486 sector_div(last_stripe_index, stripe_size); in raid0_handle_discard() 500 start_disk_index = (int)(start - first_stripe_index * stripe_size) / in raid0_handle_discard() 502 end_disk_index = (int)(end - last_stripe_index * stripe_size) / in raid0_handle_discard() 505 start_disk_offset = ((int)(start - first_stripe_index * stripe_size) % in raid0_handle_discard() 508 end_disk_offset = ((int)(end - last_stripe_index * stripe_size) % in raid0_handle_discard()
|
H A D | raid5.h | 586 unsigned long stripe_size; member 704 #define RAID5_STRIPE_SIZE(conf) ((conf)->stripe_size)
|
H A D | raid10.c | 1591 unsigned int stripe_size; in raid10_handle_discard() local 1624 stripe_size = stripe_data_disks << geo->chunk_shift; in raid10_handle_discard() 1637 if (bio_sectors(bio) < stripe_size*2) in raid10_handle_discard() 1643 div_u64_rem(bio_start, stripe_size, &remainder); in raid10_handle_discard() 1645 split_size = stripe_size - remainder; in raid10_handle_discard() 1653 div_u64_rem(bio_end, stripe_size, &remainder); in raid10_handle_discard()
|
H A D | raid5.c | 509 cnt = PAGE_SIZE / conf->stripe_size; in init_stripe_shared_pages() 6991 if (new == conf->stripe_size) in raid5_store_stripe_size() 6995 conf->stripe_size, new); in raid5_store_stripe_size() 7008 conf->stripe_size = new; in raid5_store_stripe_size() 7024 raid5_stripe_size = __ATTR(stripe_size, 0644, 7029 raid5_stripe_size = __ATTR(stripe_size, 0444, 7475 conf->stripe_size = DEFAULT_STRIPE_SIZE; in setup_conf()
|
/linux/fs/btrfs/ |
H A D | volumes.c | 5085 u64 stripe_size; member 5262 ctl->stripe_size = div_u64(devices_info[ctl->ndevs - 1].max_avail, in decide_stripe_size_regular() 5275 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in decide_stripe_size_regular() 5281 ctl->stripe_size = min(round_up(div_u64(ctl->max_chunk_size, in decide_stripe_size_regular() 5283 ctl->stripe_size); in decide_stripe_size_regular() 5287 ctl->stripe_size = min_t(u64, ctl->stripe_size, SZ_1G); in decide_stripe_size_regular() 5290 ctl->stripe_size = round_down(ctl->stripe_size, BTRFS_STRIPE_LEN); in decide_stripe_size_regular() 5291 ctl->chunk_size = ctl->stripe_size * data_stripes; in decide_stripe_size_regular() 5309 ctl->stripe_size = zone_size; in decide_stripe_size_zoned() 5314 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in decide_stripe_size_zoned() [all …]
|
H A D | volumes.h | 594 u64 stripe_size; member
|
H A D | block-group.c | 2117 data_stripe_length = map->stripe_size; in btrfs_rmap_block() 2716 map->stripe_size); in insert_dev_extents()
|
/linux/drivers/scsi/ |
H A D | myrb.h | 697 unsigned short stripe_size; member
|
H A D | myrs.h | 412 enum myrs_stripe_size stripe_size; /* Byte 6 */ member
|
H A D | myrb.c | 1123 cb->stripe_size = config2->blocks_per_stripe * config2->block_factor in myrb_get_hba_config() 1172 cb->stripe_size, cb->segment_size, in myrb_get_hba_config()
|
/linux/drivers/scsi/esas2r/ |
H A D | atioctl.h | 336 u32 stripe_size; member
|
/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 1029 map->stripe_size = test->data_stripe_size; in test_rmap_block()
|
/linux/fs/bcachefs/ |
H A D | ec.c | 1695 unsigned stripe_size, in ec_stripe_key_init() argument 1701 s->v.sectors = cpu_to_le16(stripe_size); in ec_stripe_key_init()
|