Searched refs:vdisk (Results 1 – 7 of 7) sorted by relevance
965 p->c_size = cpu_to_be64(get_capacity(device->vdisk)); in drbd_send_sizes()1999 set_capacity_and_notify(device->vdisk, size); in drbd_set_my_capacity()2030 set_capacity_and_notify(device->vdisk, 0); in drbd_device_cleanup()2208 put_disk(device->vdisk); in drbd_destroy_device()2714 device->vdisk = disk; in drbd_create_device()2841 del_gendisk(device->vdisk); in drbd_delete_device()2997 buffer->la_size_sect = cpu_to_be64(get_capacity(device->vdisk)); in drbd_md_write()3055 device->ldev->md.la_size_sect = get_capacity(device->vdisk); in drbd_md_sync()
752 set_disk_ro(device->vdisk, new_role == R_SECONDARY); in drbd_set_role()753 kobject_uevent(&disk_to_dev(device->vdisk)->kobj, KOBJ_CHANGE); in drbd_set_role()1002 if (get_capacity(device->vdisk) != size || in drbd_determine_dev_size()1647 err = bd_link_disk_holder(file_bdev(file), device->vdisk); in open_backing_dev()1699 bd_unlink_disk_holder(file_bdev(bdev_file), device->vdisk); in close_backing_dev()1870 if (drbd_get_max_capacity(nbc) < get_capacity(device->vdisk)) { in drbd_adm_attach()2111 kobject_uevent(&disk_to_dev(device->vdisk)->kobj, KOBJ_CHANGE); in drbd_adm_attach()3317 s->dev_size = get_capacity(device->vdisk); in device_to_statistics()3757 nla_put_u64_0pad(skb, T_capacity, get_capacity(device->vdisk)) || in nla_put_status_info()
591 const sector_t capacity = get_capacity(device->vdisk); in make_resync_request()770 const sector_t capacity = get_capacity(device->vdisk); in make_ov_request()
870 nr_sectors = get_capacity(device->vdisk); in __drbd_change_sync()
1851 const sector_t capacity = get_capacity(device->vdisk); in read_in_block()2817 capacity = get_capacity(device->vdisk); in receive_DataRequest()4077 cur_size = get_capacity(device->vdisk); in receive_sizes()4210 if (be64_to_cpu(p->c_size) != get_capacity(device->vdisk) || in receive_sizes()
905 nr_sectors = get_capacity(device->vdisk); in drbd_may_do_local_read()
772 struct gendisk *vdisk; member