Lines Matching refs:dev_sectors
1094 mddev->dev_sectors = sb->size * 2;
1220 sb->size = mddev->dev_sectors / 2;
1329 if (num_sectors && num_sectors < rdev->mddev->dev_sectors)
1508 mddev->dev_sectors = le64_to_cpu(sb->size);
1614 sb->size = cpu_to_le64(mddev->dev_sectors);
1679 if (num_sectors && num_sectors < rdev->mddev->dev_sectors)
1834 /* make sure rdev->sectors exceeds mddev->dev_sectors */
1835 if (rdev->sectors && (mddev->dev_sectors == 0 ||
1836 rdev->sectors < mddev->dev_sectors)) {
1845 mddev->dev_sectors = rdev->sectors;
2590 if (sectors < my_mddev->dev_sectors)
3394 mddev->dev_sectors == 0)
3619 (unsigned long long)mddev->dev_sectors / 2);
3640 if (mddev->dev_sectors == 0 ||
3641 mddev->dev_sectors > sectors)
3642 mddev->dev_sectors = sectors;
3924 max_sectors = mddev->dev_sectors;
4433 if (mddev->dev_sectors &&
4434 rdev->data_offset + mddev->dev_sectors
4511 mddev->resync_max_sectors = mddev->dev_sectors;
4663 mddev->dev_sectors = 0;
4994 info.size = mddev->dev_sectors / 2;
4995 if (info.size != mddev->dev_sectors / 2) /* overflow */
5456 mddev->dev_sectors = 2 * (sector_t)info->size;
5594 if (info->size >= 0 && mddev->dev_sectors / 2 != info->size)
5622 if (info->size >= 0 && mddev->dev_sectors / 2 != info->size)
6172 max_sectors = mddev->dev_sectors;
6768 max_sectors = mddev->dev_sectors;
6771 max_sectors = mddev->dev_sectors;