Lines Matching refs:dev_sectors
1236 mddev->dev_sectors = ((sector_t)sb->size) * 2; in super_90_validate()
1377 sb->size = mddev->dev_sectors / 2; in super_90_sync()
1488 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()
1749 mddev->dev_sectors = le64_to_cpu(sb->size); in super_1_validate()
1926 sb->size = cpu_to_le64(mddev->dev_sectors); in super_1_sync()
2073 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change()
2296 (mddev->dev_sectors == 0 || rdev->sectors < mddev->dev_sectors)) { in bind_rdev_to_array()
2305 mddev->dev_sectors = rdev->sectors; in bind_rdev_to_array()
2537 if ((mddev->dev_sectors != le64_to_cpu(sb->size)) || in does_sb_need_changing()
3178 + mddev->dev_sectors > rdev->sectors) in new_offset_store()
3273 if (sectors < my_mddev->dev_sectors) in rdev_size_store()
4268 mddev->dev_sectors == 0) in array_state_show()
4528 (unsigned long long)mddev->dev_sectors / 2); in size_show()
4553 if (mddev->dev_sectors == 0 || in size_store()
4554 mddev->dev_sectors > sectors) in size_store()
4555 mddev->dev_sectors = sectors; in size_store()
4890 max_sectors = mddev->dev_sectors; in sync_completed_show()
5652 if (mddev->dev_sectors && in md_run()
5653 rdev->data_offset + mddev->dev_sectors in md_run()
5736 mddev->resync_max_sectors = mddev->dev_sectors; in md_run()
5958 mddev->dev_sectors = 0; in md_clean()
6392 info.size = mddev->dev_sectors / 2; in get_array_info()
6393 if (info.size != mddev->dev_sectors / 2) /* overflow */ in get_array_info()
6940 mddev->dev_sectors = 2 * (sector_t)info->size; in set_array_info()
7001 sector_t old_dev_sectors = mddev->dev_sectors; in update_size()
7111 if (info->size >= 0 && mddev->dev_sectors / 2 != info->size) in update_array_info()
7139 if (info->size >= 0 && mddev->dev_sectors / 2 != info->size) in update_array_info()
7823 max_sectors = mddev->dev_sectors; in status_resync()
8548 max_sectors = mddev->dev_sectors; in md_do_sync()
9145 sector_t old_dev_sectors = mddev->dev_sectors; in md_reap_sync_thread()
9367 if (mddev->dev_sectors != le64_to_cpu(sb->size)) { in check_sb_changes()