Home
last modified time | relevance | path

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

/drivers/md/
Ddm-raid.c632 rdev->sectors = mddev->dev_sectors; in rs_set_capacity()
1437 sector_t array_sectors = rs->ti->len, dev_sectors = rs->ti->len; in rs_set_dev_and_array_sectors() local
1457 dev_sectors *= rs->raid10_copies; in rs_set_dev_and_array_sectors()
1458 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
1461 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()
1465 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
1470 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()
1473 rdev->sectors = dev_sectors; in rs_set_dev_and_array_sectors()
1476 mddev->dev_sectors = dev_sectors; in rs_set_dev_and_array_sectors()
1485 static void __rs_setup_recovery(struct raid_set *rs, sector_t dev_sectors) in __rs_setup_recovery() argument
[all …]
Draid10.h48 sector_t dev_sectors; /* temp copy of member
Dmd.c1068 mddev->dev_sectors = ((sector_t)sb->size) * 2; in super_90_validate()
1205 sb->size = mddev->dev_sectors / 2; in super_90_sync()
1314 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()
1553 mddev->dev_sectors = le64_to_cpu(sb->size); in super_1_validate()
1706 sb->size = cpu_to_le64(mddev->dev_sectors); in super_1_sync()
1839 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change()
2059 (mddev->dev_sectors == 0 || rdev->sectors < mddev->dev_sectors)) { in bind_rdev_to_array()
2068 mddev->dev_sectors = rdev->sectors; in bind_rdev_to_array()
2271 if ((mddev->dev_sectors != le64_to_cpu(sb->size)) || in does_sb_need_changing()
2888 + mddev->dev_sectors > rdev->sectors) in new_offset_store()
[all …]
Draid10.c2881 return mddev->dev_sectors - sector_nr; in raid10_sync_request()
2885 max_sector = mddev->dev_sectors; in raid10_sync_request()
3422 sectors = conf->dev_sectors; in raid10_size()
3452 conf->dev_sectors = size << conf->geo.chunk_shift; in calc_sectors()
3564 calc_sectors(conf, mddev->dev_sectors); in setup_conf()
3578 conf->prev.stride = conf->dev_sectors; in setup_conf()
3749 mddev->dev_sectors = conf->dev_sectors; in raid10_run()
3870 if (sectors > mddev->dev_sectors && in raid10_resize()
3876 mddev->dev_sectors = conf->dev_sectors; in raid10_resize()
3902 mddev->dev_sectors = size; in raid10_takeover_raid0()
Dfaulty.c297 return mddev->dev_sectors; in faulty_size()
Draid1.c2497 max_sector = mddev->dev_sectors; in raid1_sync_request()
2777 return mddev->dev_sectors; in raid1_size()
3022 if (sectors > mddev->dev_sectors && in raid1_resize()
3023 mddev->recovery_cp > mddev->dev_sectors) { in raid1_resize()
3024 mddev->recovery_cp = mddev->dev_sectors; in raid1_resize()
3027 mddev->dev_sectors = sectors; in raid1_resize()
Dmd.h243 sector_t dev_sectors; /* used size of member
Draid5.c5464 BUG_ON((mddev->dev_sectors & in reshape_request()
5575 if (last_sector >= mddev->dev_sectors) in reshape_request()
5576 last_sector = mddev->dev_sectors - 1; in reshape_request()
5632 sector_t max_sector = mddev->dev_sectors; in raid5_sync_request()
5673 sector_t rv = mddev->dev_sectors - sector_nr; in raid5_sync_request()
6340 sectors = mddev->dev_sectors; in raid5_size()
6932 mddev->dev_sectors &= ~(mddev->chunk_sectors - 1); in raid5_run()
6933 mddev->resync_max_sectors = mddev->dev_sectors; in raid5_run()
7365 if (sectors > mddev->dev_sectors && in raid5_resize()
7366 mddev->recovery_cp > mddev->dev_sectors) { in raid5_resize()
[all …]
Dmultipath.c377 return mddev->dev_sectors; in multipath_size()
Draid0.c525 rdev->sectors = mddev->dev_sectors; in raid0_takeover_raid45()
Dbitmap.c239 < (rdev->data_offset + mddev->dev_sectors in write_sb_page()
249 if (rdev->data_offset + mddev->dev_sectors in write_sb_page()
/drivers/ata/
Dlibata-scsi.c1626 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat() local
1654 if (block >= dev_sectors) in ata_scsi_verify_xlat()
1656 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat()