Searched refs:dev_sectors (Results 1 – 14 of 14) sorted by relevance
247 sector_t dev_sectors; member439 return rs->md.recovery_cp < rs->md.dev_sectors; in rs_is_recovering()693 rdev->sectors = mddev->dev_sectors; in rs_set_rdev_sectors()1613 if (ds < rs->md.dev_sectors) { in _check_data_dev_sectors()1627 sector_t array_sectors = sectors, dev_sectors = sectors; in rs_set_dev_and_array_sectors() local1648 dev_sectors *= rs->raid10_copies; in rs_set_dev_and_array_sectors()1649 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1652 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()1656 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1661 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()[all …]
62 sector_t dev_sectors; /* temp copy of member
1284 mddev->dev_sectors = ((sector_t)sb->size) * 2; in super_90_validate()1425 sb->size = mddev->dev_sectors / 2; in super_90_sync()1536 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()1794 mddev->dev_sectors = le64_to_cpu(sb->size); in super_1_validate()1971 sb->size = cpu_to_le64(mddev->dev_sectors); in super_1_sync()2136 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change()2378 (mddev->dev_sectors == 0 || rdev->sectors < mddev->dev_sectors)) { in bind_rdev_to_array()2387 mddev->dev_sectors = rdev->sectors; in bind_rdev_to_array()2624 if ((mddev->dev_sectors != le64_to_cpu(sb->size)) || in does_sb_need_changing()3272 + mddev->dev_sectors > rdev->sectors) in new_offset_store()[all …]
289 return mddev->dev_sectors; in faulty_size()
3308 return mddev->dev_sectors - sector_nr; in raid10_sync_request()3312 max_sector = mddev->dev_sectors; in raid10_sync_request()3910 sectors = conf->dev_sectors; in raid10_size()3940 conf->dev_sectors = size << conf->geo.chunk_shift; in calc_sectors()4055 calc_sectors(conf, mddev->dev_sectors); in setup_conf()4069 conf->prev.stride = conf->dev_sectors; in setup_conf()4250 mddev->dev_sectors = conf->dev_sectors; in raid10_run()4354 if (sectors > mddev->dev_sectors && in raid10_resize()4360 mddev->dev_sectors = conf->dev_sectors; in raid10_resize()4386 mddev->dev_sectors = size; in raid10_takeover_raid0()
333 return mddev->dev_sectors; in multipath_size()
2686 max_sector = mddev->dev_sectors; in raid1_sync_request()2968 return mddev->dev_sectors; in raid1_size()3233 if (sectors > mddev->dev_sectors && in raid1_resize()3234 mddev->recovery_cp > mddev->dev_sectors) { in raid1_resize()3235 mddev->recovery_cp = mddev->dev_sectors; in raid1_resize()3238 mddev->dev_sectors = sectors; in raid1_resize()
345 sector_t dev_sectors; /* used size of member
6290 BUG_ON((mddev->dev_sectors & in reshape_request()6411 if (last_sector >= mddev->dev_sectors) in reshape_request()6412 last_sector = mddev->dev_sectors - 1; in reshape_request()6477 sector_t max_sector = mddev->dev_sectors; in raid5_sync_request()6518 sector_t rv = mddev->dev_sectors - sector_nr; in raid5_sync_request()7288 sectors = mddev->dev_sectors; in raid5_size()7960 mddev->dev_sectors &= ~((sector_t)mddev->chunk_sectors - 1); in raid5_run()7961 mddev->resync_max_sectors = mddev->dev_sectors; in raid5_run()8380 if (sectors > mddev->dev_sectors && in raid5_resize()8381 mddev->recovery_cp > mddev->dev_sectors) { in raid5_resize()[all …]
615 rdev->sectors = mddev->dev_sectors; in raid0_takeover_raid45()
244 < (rdev->data_offset + mddev->dev_sectors in write_sb_page()254 if (rdev->data_offset + mddev->dev_sectors in write_sb_page()
202 __u64 dev_sectors; member
1381 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat() local1412 if (block >= dev_sectors) in ata_scsi_verify_xlat()1414 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat()
214 set_capacity(ub->ub_disk, p->dev_sectors); in ublk_dev_param_basic_apply()