Lines Matching refs:dev_sectors

1289 		mddev->dev_sectors = ((sector_t)sb->size) * 2;  in super_90_validate()
1430 sb->size = mddev->dev_sectors / 2; in super_90_sync()
1541 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()
1799 mddev->dev_sectors = le64_to_cpu(sb->size); in super_1_validate()
1976 sb->size = cpu_to_le64(mddev->dev_sectors); in super_1_sync()
2141 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change()
2383 (mddev->dev_sectors == 0 || rdev->sectors < mddev->dev_sectors)) { in bind_rdev_to_array()
2392 mddev->dev_sectors = rdev->sectors; in bind_rdev_to_array()
2629 if ((mddev->dev_sectors != le64_to_cpu(sb->size)) || in does_sb_need_changing()
3277 + mddev->dev_sectors > rdev->sectors) in new_offset_store()
3393 if (sectors < my_mddev->dev_sectors) in rdev_size_store()
4371 mddev->dev_sectors == 0) in array_state_show()
4643 (unsigned long long)mddev->dev_sectors / 2); in size_show()
4668 if (mddev->dev_sectors == 0 || in size_store()
4669 mddev->dev_sectors > sectors) in size_store()
4670 mddev->dev_sectors = sectors; in size_store()
5019 max_sectors = mddev->dev_sectors; in sync_completed_show()
5837 if (mddev->dev_sectors && in md_run()
5838 rdev->data_offset + mddev->dev_sectors in md_run()
5921 mddev->resync_max_sectors = mddev->dev_sectors; in md_run()
6147 mddev->dev_sectors = 0; in md_clean()
6580 info.size = mddev->dev_sectors / 2; in get_array_info()
6581 if (info.size != mddev->dev_sectors / 2) /* overflow */ in get_array_info()
7135 mddev->dev_sectors = 2 * (sector_t)info->size; in md_set_array_info()
7196 sector_t old_dev_sectors = mddev->dev_sectors; in update_size()
7307 if (info->size >= 0 && mddev->dev_sectors / 2 != info->size) in update_array_info()
7335 if (info->size >= 0 && mddev->dev_sectors / 2 != info->size) in update_array_info()
8018 max_sectors = mddev->dev_sectors; in status_resync()
8843 max_sectors = mddev->dev_sectors; in md_do_sync()
9440 sector_t old_dev_sectors = mddev->dev_sectors; in md_reap_sync_thread()
9669 if (mddev->dev_sectors != le64_to_cpu(sb->size)) { in check_sb_changes()