Searched refs:dev_sectors (Results 1 – 12 of 12) sorted by relevance
48 sector_t dev_sectors; /* temp copy of member
1061 mddev->dev_sectors = ((sector_t)sb->size) * 2; in super_90_validate()1198 sb->size = mddev->dev_sectors / 2; in super_90_sync()1307 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()1548 mddev->dev_sectors = le64_to_cpu(sb->size); in super_1_validate()1685 sb->size = cpu_to_le64(mddev->dev_sectors); in super_1_sync()1807 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change()2014 if (rdev->sectors && (mddev->dev_sectors == 0 || in bind_rdev_to_array()2015 rdev->sectors < mddev->dev_sectors)) { in bind_rdev_to_array()2024 mddev->dev_sectors = rdev->sectors; in bind_rdev_to_array()2708 + mddev->dev_sectors > rdev->sectors) in new_offset_store()[all …]
2961 return mddev->dev_sectors - sector_nr; in sync_request()2965 max_sector = mddev->dev_sectors; in sync_request()3472 sectors = conf->dev_sectors; in raid10_size()3502 conf->dev_sectors = size << conf->geo.chunk_shift; in calc_sectors()3599 calc_sectors(conf, mddev->dev_sectors); in setup_conf()3613 conf->prev.stride = conf->dev_sectors; in setup_conf()3784 mddev->dev_sectors = conf->dev_sectors; in run()3918 if (sectors > mddev->dev_sectors && in raid10_resize()3924 mddev->dev_sectors = conf->dev_sectors; in raid10_resize()
297 return mddev->dev_sectors; in faulty_size()
2506 max_sector = mddev->dev_sectors; in sync_request()2767 return mddev->dev_sectors; in raid1_size()3033 if (sectors > mddev->dev_sectors && in raid1_resize()3034 mddev->recovery_cp > mddev->dev_sectors) { in raid1_resize()3035 mddev->recovery_cp = mddev->dev_sectors; in raid1_resize()3038 mddev->dev_sectors = sectors; in raid1_resize()
4844 BUG_ON((mddev->dev_sectors & in reshape_request()4955 if (last_sector >= mddev->dev_sectors) in reshape_request()4956 last_sector = mddev->dev_sectors - 1; in reshape_request()5009 sector_t max_sector = mddev->dev_sectors; in sync_request()5050 sector_t rv = mddev->dev_sectors - sector_nr; in sync_request()5607 sectors = mddev->dev_sectors; in raid5_size()6127 mddev->dev_sectors &= ~(mddev->chunk_sectors - 1); in run()6128 mddev->resync_max_sectors = mddev->dev_sectors; in run()6522 if (sectors > mddev->dev_sectors && in raid5_resize()6523 mddev->recovery_cp > mddev->dev_sectors) { in raid5_resize()[all …]
251 sector_t dev_sectors; /* used size of member
386 return mddev->dev_sectors; in multipath_size()
728 rs->md.dev_sectors = sectors_per_dev; in parse_raid_params()1604 rs->md.dev_sectors, in raid_iterate_devices()
583 rdev->sectors = mddev->dev_sectors; in raid0_takeover_raid45()
219 < (rdev->data_offset + mddev->dev_sectors in write_sb_page()229 if (rdev->data_offset + mddev->dev_sectors in write_sb_page()
1538 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat() local1559 if (block >= dev_sectors) in ata_scsi_verify_xlat()1561 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat()