Searched refs:new_disk_conf (Results 1 – 2 of 2) sorted by relevance
1568 struct disk_conf *new_disk_conf, *old_disk_conf; in drbd_adm_disk_opts() local1589 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_disk_opts()1590 if (!new_disk_conf) { in drbd_adm_disk_opts()1597 *new_disk_conf = *old_disk_conf; in drbd_adm_disk_opts()1599 set_disk_conf_defaults(new_disk_conf); in drbd_adm_disk_opts()1601 err = disk_conf_from_attrs_for_change(new_disk_conf, info); in drbd_adm_disk_opts()1608 if (!expect(new_disk_conf->resync_rate >= 1)) in drbd_adm_disk_opts()1609 new_disk_conf->resync_rate = 1; in drbd_adm_disk_opts()1611 sanitize_disk_conf(device, new_disk_conf, device->ldev); in drbd_adm_disk_opts()1613 if (new_disk_conf->c_plan_ahead > DRBD_C_PLAN_AHEAD_MAX) in drbd_adm_disk_opts()[all …]
3888 struct disk_conf *old_disk_conf = NULL, *new_disk_conf = NULL; in receive_SyncParam() local3935 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in receive_SyncParam()3936 if (!new_disk_conf) { in receive_SyncParam()3944 *new_disk_conf = *old_disk_conf; in receive_SyncParam()3946 new_disk_conf->resync_rate = be32_to_cpu(p->resync_rate); in receive_SyncParam()4004 if (apv > 94 && new_disk_conf) { in receive_SyncParam()4005 new_disk_conf->c_plan_ahead = be32_to_cpu(p->c_plan_ahead); in receive_SyncParam()4006 new_disk_conf->c_delay_target = be32_to_cpu(p->c_delay_target); in receive_SyncParam()4007 new_disk_conf->c_fill_target = be32_to_cpu(p->c_fill_target); in receive_SyncParam()4008 new_disk_conf->c_max_rate = be32_to_cpu(p->c_max_rate); in receive_SyncParam()[all …]