Home
last modified time | relevance | path

Searched refs:new_disk_conf (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/block/drbd/
Ddrbd_nl.c1522 struct disk_conf *new_disk_conf, *old_disk_conf; in drbd_adm_disk_opts() local
1542 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_disk_opts()
1543 if (!new_disk_conf) { in drbd_adm_disk_opts()
1550 *new_disk_conf = *old_disk_conf; in drbd_adm_disk_opts()
1552 set_disk_conf_defaults(new_disk_conf); in drbd_adm_disk_opts()
1554 err = disk_conf_from_attrs_for_change(new_disk_conf, info); in drbd_adm_disk_opts()
1561 if (!expect(new_disk_conf->resync_rate >= 1)) in drbd_adm_disk_opts()
1562 new_disk_conf->resync_rate = 1; in drbd_adm_disk_opts()
1564 sanitize_disk_conf(device, new_disk_conf, device->ldev); in drbd_adm_disk_opts()
1566 if (new_disk_conf->c_plan_ahead > DRBD_C_PLAN_AHEAD_MAX) in drbd_adm_disk_opts()
[all …]
Ddrbd_receiver.c3758 struct disk_conf *old_disk_conf = NULL, *new_disk_conf = NULL; in receive_SyncParam() local
3805 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in receive_SyncParam()
3806 if (!new_disk_conf) { in receive_SyncParam()
3814 *new_disk_conf = *old_disk_conf; in receive_SyncParam()
3816 new_disk_conf->resync_rate = be32_to_cpu(p->resync_rate); in receive_SyncParam()
3874 if (apv > 94 && new_disk_conf) { in receive_SyncParam()
3875 new_disk_conf->c_plan_ahead = be32_to_cpu(p->c_plan_ahead); in receive_SyncParam()
3876 new_disk_conf->c_delay_target = be32_to_cpu(p->c_delay_target); in receive_SyncParam()
3877 new_disk_conf->c_fill_target = be32_to_cpu(p->c_fill_target); in receive_SyncParam()
3878 new_disk_conf->c_max_rate = be32_to_cpu(p->c_max_rate); in receive_SyncParam()
[all …]