Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/block/drbd/
Ddrbd_nl.c1499 struct disk_conf *new_disk_conf, *old_disk_conf; in drbd_adm_disk_opts() local
1520 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_disk_opts()
1521 if (!new_disk_conf) { in drbd_adm_disk_opts()
1528 *new_disk_conf = *old_disk_conf; in drbd_adm_disk_opts()
1530 set_disk_conf_defaults(new_disk_conf); in drbd_adm_disk_opts()
1532 err = disk_conf_from_attrs_for_change(new_disk_conf, info); in drbd_adm_disk_opts()
1539 if (!expect(device, new_disk_conf->resync_rate >= 1)) in drbd_adm_disk_opts()
1540 new_disk_conf->resync_rate = 1; in drbd_adm_disk_opts()
1542 sanitize_disk_conf(device, new_disk_conf, device->ldev); in drbd_adm_disk_opts()
1544 if (new_disk_conf->c_plan_ahead > DRBD_C_PLAN_AHEAD_MAX) in drbd_adm_disk_opts()
[all …]
Ddrbd_receiver.c3847 struct disk_conf *old_disk_conf = NULL, *new_disk_conf = NULL; in receive_SyncParam() local
3895 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in receive_SyncParam()
3896 if (!new_disk_conf) { in receive_SyncParam()
3904 *new_disk_conf = *old_disk_conf; in receive_SyncParam()
3906 new_disk_conf->resync_rate = be32_to_cpu(p->resync_rate); in receive_SyncParam()
3963 if (apv > 94 && new_disk_conf) { in receive_SyncParam()
3964 new_disk_conf->c_plan_ahead = be32_to_cpu(p->c_plan_ahead); in receive_SyncParam()
3965 new_disk_conf->c_delay_target = be32_to_cpu(p->c_delay_target); in receive_SyncParam()
3966 new_disk_conf->c_fill_target = be32_to_cpu(p->c_fill_target); in receive_SyncParam()
3967 new_disk_conf->c_max_rate = be32_to_cpu(p->c_max_rate); in receive_SyncParam()
[all …]