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()
923 u_size = rcu_dereference(device->ldev->disk_conf)->disk_size; in drbd_determine_dev_size()
1080 static int drbd_check_al_size(struct drbd_device *device, struct disk_conf *dc) in drbd_check_al_size()
1138 max_segments = rcu_dereference(device->ldev->disk_conf)->max_bio_bvecs; in drbd_setup_queue_param()
1307 static bool write_ordering_changed(struct disk_conf *a, struct disk_conf *b) in write_ordering_changed()
1319 struct disk_conf *new_disk_conf, *old_disk_conf; in drbd_adm_disk_opts()
1339 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_disk_opts()
1346 old_disk_conf = device->ldev->disk_conf; in drbd_adm_disk_opts()
1395 rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf); in drbd_adm_disk_opts()
1464 struct disk_conf *new_disk_conf = NULL; in drbd_adm_attach()
1513 new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_attach()
1518 nbc->disk_conf = new_disk_conf; in drbd_adm_attach()
1704 drbd_new_dev_size(device, nbc, nbc->disk_conf->disk_size, 0) < nbc->md.la_size_sect) { in drbd_adm_attach()
1818 (ns.pdsk == D_OUTDATED || rcu_dereference(device->ldev->disk_conf)->fencing == FP_DONT_CARE)) in drbd_adm_attach()
1826 if (rcu_dereference(device->ldev->disk_conf)->al_updates) in drbd_adm_attach()
2029 enum drbd_fencing_p fp = rcu_dereference(device->ldev->disk_conf)->fencing; in _check_net_options()
2492 struct disk_conf *old_disk_conf, *new_disk_conf = NULL; in drbd_adm_resize()
2544 u_size = rcu_dereference(device->ldev->disk_conf)->disk_size; in drbd_adm_resize()
2547 new_disk_conf = kmalloc(sizeof(struct disk_conf), GFP_KERNEL); in drbd_adm_resize()
2581 old_disk_conf = device->ldev->disk_conf; in drbd_adm_resize()
2584 rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf); in drbd_adm_resize()
2959 struct disk_conf *disk_conf; in nla_put_status_info() local
2961 disk_conf = rcu_dereference(device->ldev->disk_conf); in nla_put_status_info()
2962 err = disk_conf_to_skb(skb, disk_conf, exclude_sensitive); in nla_put_status_info()