Home
last modified time | relevance | path

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

/linux/drivers/md/
H A Ddm-raid.c249 sector_t dev_sectors; member
441 return rs->md.recovery_cp < rs->md.dev_sectors; in rs_is_recovering()
695 rdev->sectors = mddev->dev_sectors; in rs_set_rdev_sectors()
1620 if (ds < rs->md.dev_sectors) { in _check_data_dev_sectors()
1651 sector_t array_sectors = sectors, dev_sectors = sectors; in rs_set_dev_and_array_sectors() local
1672 dev_sectors *= rs->raid10_copies; in rs_set_dev_and_array_sectors()
1673 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
1676 array_sectors = (data_stripes + delta_disks) * (dev_sectors - _get_reshape_sectors(rs)); in rs_set_dev_and_array_sectors()
1680 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()
1685 array_sectors = (data_stripes + delta_disks) * (dev_sectors - _get_reshape_sectors(rs)); in rs_set_dev_and_array_sectors()
[all …]
H A Draid10.h62 sector_t dev_sectors; /* temp copy of member
H A Dmd.c1330 mddev->dev_sectors = ((sector_t)sb->size) * 2; in super_90_validate()
1468 sb->size = mddev->dev_sectors / 2; in super_90_sync()
1579 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()
1833 mddev->dev_sectors = le64_to_cpu(sb->size); in super_1_validate()
2039 sb->size = cpu_to_le64(mddev->dev_sectors); in super_1_sync()
2204 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change()
2400 (mddev->dev_sectors == 0 || rdev->sectors < mddev->dev_sectors)) { in bind_rdev_to_array()
2409 mddev->dev_sectors = rdev->sectors; in bind_rdev_to_array()
2612 if ((mddev->dev_sectors != le64_to_cpu(sb->size)) || in does_sb_need_changing()
3247 + mddev->dev_sectors > rdev->sectors) in new_offset_store()
[all …]
H A Draid10.c3224 return mddev->dev_sectors - sector_nr; in raid10_sync_request()
3826 sectors = conf->dev_sectors; in raid10_size()
3856 conf->dev_sectors = size << conf->geo.chunk_shift; in calc_sectors()
3985 calc_sectors(conf, mddev->dev_sectors); in setup_conf()
3999 conf->prev.stride = conf->dev_sectors; in setup_conf()
4188 mddev->dev_sectors = conf->dev_sectors; in raid10_run()
4278 if (sectors > mddev->dev_sectors && in raid10_resize()
4284 mddev->dev_sectors = conf->dev_sectors; in raid10_resize()
4310 mddev->dev_sectors = size; in raid10_takeover_raid0()
H A Draid1.c3099 return mddev->dev_sectors; in raid1_size()
3364 if (sectors > mddev->dev_sectors && in raid1_resize()
3365 mddev->recovery_cp > mddev->dev_sectors) { in raid1_resize()
3366 mddev->recovery_cp = mddev->dev_sectors; in raid1_resize()
3369 mddev->dev_sectors = sectors; in raid1_resize()
H A Dmd.h401 sector_t dev_sectors; /* used size of member
H A Draid5.c6302 if (WARN_ON((mddev->dev_sectors & in reshape_request()
6425 if (last_sector >= mddev->dev_sectors) in reshape_request()
6426 last_sector = mddev->dev_sectors - 1; in reshape_request()
6531 sector_t rv = mddev->dev_sectors - sector_nr; in raid5_sync_request()
7290 sectors = mddev->dev_sectors; in raid5_size()
7996 mddev->dev_sectors &= ~((sector_t)mddev->chunk_sectors - 1); in raid5_run()
7997 mddev->resync_max_sectors = mddev->dev_sectors; in raid5_run()
8339 if (sectors > mddev->dev_sectors && in raid5_resize()
8340 mddev->recovery_cp > mddev->dev_sectors) { in raid5_resize()
8341 mddev->recovery_cp = mddev->dev_sectors; in raid5_resize()
[all …]
H A Draid0.c668 rdev->sectors = mddev->dev_sectors; in raid0_takeover_raid45()
H A Dmd-bitmap.c455 sboff < (doff + mddev->dev_sectors + PAGE_SIZE / SECTOR_SIZE)) in __write_sb_page()
464 if (doff + mddev->dev_sectors > sboff) in __write_sb_page()
/linux/include/uapi/linux/
H A Dublk_cmd.h371 __u64 dev_sectors; member
/linux/drivers/ata/
H A Dlibata-scsi.c1402 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat() local
1433 if (block >= dev_sectors) in ata_scsi_verify_xlat()
1435 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat()
/linux/drivers/block/
H A Dublk_drv.c251 return p->dev_sectors >> ilog2(p->chunk_sectors); in ublk_get_nr_zones()
528 set_capacity(ub->ub_disk, p->dev_sectors); in ublk_dev_param_basic_apply()