Home
last modified time | relevance | path

Searched refs:dev_sectors (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/
Ddm-raid.c247 sector_t dev_sectors; member
439 return rs->md.recovery_cp < rs->md.dev_sectors; in rs_is_recovering()
693 rdev->sectors = mddev->dev_sectors; in rs_set_rdev_sectors()
1614 if (ds < rs->md.dev_sectors) { in _check_data_dev_sectors()
1628 sector_t array_sectors = sectors, dev_sectors = sectors; in rs_set_dev_and_array_sectors() local
1649 dev_sectors *= rs->raid10_copies; in rs_set_dev_and_array_sectors()
1650 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
1653 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()
1657 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
1662 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()
[all …]
Draid10.h62 sector_t dev_sectors; /* temp copy of member
Dmd.c1333 mddev->dev_sectors = ((sector_t)sb->size) * 2; in super_90_validate()
1474 sb->size = mddev->dev_sectors / 2; in super_90_sync()
1585 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()
1846 mddev->dev_sectors = le64_to_cpu(sb->size); in super_1_validate()
2023 sb->size = cpu_to_le64(mddev->dev_sectors); in super_1_sync()
2188 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change()
2420 (mddev->dev_sectors == 0 || rdev->sectors < mddev->dev_sectors)) { in bind_rdev_to_array()
2429 mddev->dev_sectors = rdev->sectors; in bind_rdev_to_array()
2671 if ((mddev->dev_sectors != le64_to_cpu(sb->size)) || in does_sb_need_changing()
3320 + mddev->dev_sectors > rdev->sectors) in new_offset_store()
[all …]
Draid10.c2919 return mddev->dev_sectors - sector_nr; in raid10_sync_request()
2923 max_sector = mddev->dev_sectors; in raid10_sync_request()
3521 sectors = conf->dev_sectors; in raid10_size()
3551 conf->dev_sectors = size << conf->geo.chunk_shift; in calc_sectors()
3666 calc_sectors(conf, mddev->dev_sectors); in setup_conf()
3680 conf->prev.stride = conf->dev_sectors; in setup_conf()
3874 mddev->dev_sectors = conf->dev_sectors; in raid10_run()
3978 if (sectors > mddev->dev_sectors && in raid10_resize()
3984 mddev->dev_sectors = conf->dev_sectors; in raid10_resize()
4010 mddev->dev_sectors = size; in raid10_takeover_raid0()
Dmd-faulty.c289 return mddev->dev_sectors; in faulty_size()
Draid1.c2636 max_sector = mddev->dev_sectors; in raid1_sync_request()
2918 return mddev->dev_sectors; in raid1_size()
3199 if (sectors > mddev->dev_sectors && in raid1_resize()
3200 mddev->recovery_cp > mddev->dev_sectors) { in raid1_resize()
3201 mddev->recovery_cp = mddev->dev_sectors; in raid1_resize()
3204 mddev->dev_sectors = sectors; in raid1_resize()
Dmd-multipath.c340 return mddev->dev_sectors; in multipath_size()
Dmd.h320 sector_t dev_sectors; /* used size of member
Draid5.c6029 BUG_ON((mddev->dev_sectors & in reshape_request()
6149 if (last_sector >= mddev->dev_sectors) in reshape_request()
6150 last_sector = mddev->dev_sectors - 1; in reshape_request()
6214 sector_t max_sector = mddev->dev_sectors; in raid5_sync_request()
6255 sector_t rv = mddev->dev_sectors - sector_nr; in raid5_sync_request()
7025 sectors = mddev->dev_sectors; in raid5_size()
7675 mddev->dev_sectors &= ~(mddev->chunk_sectors - 1); in raid5_run()
7676 mddev->resync_max_sectors = mddev->dev_sectors; in raid5_run()
8080 if (sectors > mddev->dev_sectors && in raid5_resize()
8081 mddev->recovery_cp > mddev->dev_sectors) { in raid5_resize()
[all …]
Draid0.c618 rdev->sectors = mddev->dev_sectors; in raid0_takeover_raid45()
Dmd-bitmap.c244 < (rdev->data_offset + mddev->dev_sectors in write_sb_page()
254 if (rdev->data_offset + mddev->dev_sectors in write_sb_page()
/kernel/linux/linux-5.10/drivers/ata/
Dlibata-scsi.c1388 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat() local
1416 if (block >= dev_sectors) in ata_scsi_verify_xlat()
1418 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat()