Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/block/drbd/
Ddrbd_nl.c1493 struct disk_conf *new_disk_conf, *old_disk_conf; in drbd_adm_disk_opts() local
1514 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_disk_opts()
1515 if (!new_disk_conf) { in drbd_adm_disk_opts()
1522 *new_disk_conf = *old_disk_conf; in drbd_adm_disk_opts()
1524 set_disk_conf_defaults(new_disk_conf); in drbd_adm_disk_opts()
1526 err = disk_conf_from_attrs_for_change(new_disk_conf, info); in drbd_adm_disk_opts()
1533 if (!expect(new_disk_conf->resync_rate >= 1)) in drbd_adm_disk_opts()
1534 new_disk_conf->resync_rate = 1; in drbd_adm_disk_opts()
1536 sanitize_disk_conf(device, new_disk_conf, device->ldev); in drbd_adm_disk_opts()
1538 if (new_disk_conf->c_plan_ahead > DRBD_C_PLAN_AHEAD_MAX) in drbd_adm_disk_opts()
[all …]
Ddrbd_receiver.c3832 struct disk_conf *old_disk_conf = NULL, *new_disk_conf = NULL; in receive_SyncParam() local
3880 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in receive_SyncParam()
3881 if (!new_disk_conf) { in receive_SyncParam()
3889 *new_disk_conf = *old_disk_conf; in receive_SyncParam()
3891 new_disk_conf->resync_rate = be32_to_cpu(p->resync_rate); in receive_SyncParam()
3948 if (apv > 94 && new_disk_conf) { in receive_SyncParam()
3949 new_disk_conf->c_plan_ahead = be32_to_cpu(p->c_plan_ahead); in receive_SyncParam()
3950 new_disk_conf->c_delay_target = be32_to_cpu(p->c_delay_target); in receive_SyncParam()
3951 new_disk_conf->c_fill_target = be32_to_cpu(p->c_fill_target); in receive_SyncParam()
3952 new_disk_conf->c_max_rate = be32_to_cpu(p->c_max_rate); in receive_SyncParam()
[all …]