Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/block/drbd/
Ddrbd_nl.c1570 struct disk_conf *new_disk_conf, *old_disk_conf; in drbd_adm_disk_opts() local
1591 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_disk_opts()
1592 if (!new_disk_conf) { in drbd_adm_disk_opts()
1599 *new_disk_conf = *old_disk_conf; in drbd_adm_disk_opts()
1601 set_disk_conf_defaults(new_disk_conf); in drbd_adm_disk_opts()
1603 err = disk_conf_from_attrs_for_change(new_disk_conf, info); in drbd_adm_disk_opts()
1610 if (!expect(new_disk_conf->resync_rate >= 1)) in drbd_adm_disk_opts()
1611 new_disk_conf->resync_rate = 1; in drbd_adm_disk_opts()
1613 sanitize_disk_conf(device, new_disk_conf, device->ldev); in drbd_adm_disk_opts()
1615 if (new_disk_conf->c_plan_ahead > DRBD_C_PLAN_AHEAD_MAX) in drbd_adm_disk_opts()
[all …]
Ddrbd_receiver.c3886 struct disk_conf *old_disk_conf = NULL, *new_disk_conf = NULL; in receive_SyncParam() local
3933 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in receive_SyncParam()
3934 if (!new_disk_conf) { in receive_SyncParam()
3942 *new_disk_conf = *old_disk_conf; in receive_SyncParam()
3944 new_disk_conf->resync_rate = be32_to_cpu(p->resync_rate); in receive_SyncParam()
4002 if (apv > 94 && new_disk_conf) { in receive_SyncParam()
4003 new_disk_conf->c_plan_ahead = be32_to_cpu(p->c_plan_ahead); in receive_SyncParam()
4004 new_disk_conf->c_delay_target = be32_to_cpu(p->c_delay_target); in receive_SyncParam()
4005 new_disk_conf->c_fill_target = be32_to_cpu(p->c_fill_target); in receive_SyncParam()
4006 new_disk_conf->c_max_rate = be32_to_cpu(p->c_max_rate); in receive_SyncParam()
[all …]