Lines Matching refs:disk_conf
419 struct disk_conf *disk_conf = in highest_fencing_policy() local
420 rcu_dereference(peer_device->device->ldev->disk_conf); in highest_fencing_policy()
421 fp = max_t(enum drbd_fencing_p, fp, disk_conf->fencing); in highest_fencing_policy()
924 u_size = rcu_dereference(device->ldev->disk_conf)->disk_size; in drbd_determine_dev_size()
1081 static int drbd_check_al_size(struct drbd_device *device, struct disk_conf *dc) in drbd_check_al_size()
1139 max_segments = rcu_dereference(device->ldev->disk_conf)->max_bio_bvecs; in drbd_setup_queue_param()
1308 static bool write_ordering_changed(struct disk_conf *a, struct disk_conf *b) in write_ordering_changed()
1320 struct disk_conf *new_disk_conf, *old_disk_conf; in drbd_adm_disk_opts()
1340 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_disk_opts()
1347 old_disk_conf = device->ldev->disk_conf; in drbd_adm_disk_opts()
1396 rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf); in drbd_adm_disk_opts()
1465 struct disk_conf *new_disk_conf = NULL; in drbd_adm_attach()
1514 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_attach()
1519 nbc->disk_conf = new_disk_conf; in drbd_adm_attach()
1705 drbd_new_dev_size(device, nbc, nbc->disk_conf->disk_size, 0) < nbc->md.la_size_sect) { in drbd_adm_attach()
1819 (ns.pdsk == D_OUTDATED || rcu_dereference(device->ldev->disk_conf)->fencing == FP_DONT_CARE)) in drbd_adm_attach()
1827 if (rcu_dereference(device->ldev->disk_conf)->al_updates) in drbd_adm_attach()
2030 enum drbd_fencing_p fp = rcu_dereference(device->ldev->disk_conf)->fencing; in _check_net_options()
2493 struct disk_conf *old_disk_conf, *new_disk_conf = NULL; in drbd_adm_resize()
2545 u_size = rcu_dereference(device->ldev->disk_conf)->disk_size; in drbd_adm_resize()
2548 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_resize()
2582 old_disk_conf = device->ldev->disk_conf; in drbd_adm_resize()
2585 rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf); in drbd_adm_resize()
2960 struct disk_conf *disk_conf; in nla_put_status_info() local
2962 disk_conf = rcu_dereference(device->ldev->disk_conf); in nla_put_status_info()
2963 err = disk_conf_to_skb(skb, disk_conf, exclude_sensitive); in nla_put_status_info()