Home
last modified time | relevance | path

Searched refs:drbd_get_capacity (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/block/drbd/
Ddrbd_int.h1858 static inline sector_t drbd_get_capacity(struct block_device *bdev) in drbd_get_capacity() function
1879 s = drbd_get_capacity(bdev->backing_bdev) in drbd_get_max_capacity()
1886 drbd_get_capacity(bdev->backing_bdev)); in drbd_get_max_capacity()
1894 drbd_get_capacity(bdev->backing_bdev)); in drbd_get_max_capacity()
1914 return (drbd_get_capacity(bdev->backing_bdev) & ~7ULL) - 8; in drbd_md_ss()
Ddrbd_nl.c843 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); in drbd_md_set_sector_offsets()
852 md_size_sect = drbd_get_capacity(bdev->backing_bdev); in drbd_md_set_sector_offsets()
1000 if (drbd_get_capacity(device->this_bdev) != size || in drbd_determine_dev_size()
1934 if (drbd_get_capacity(nbc->md_bdev) < min_md_device_sectors) { in drbd_adm_attach()
1945 drbd_get_capacity(device->this_bdev)) { in drbd_adm_attach()
1950 nbc->known_size = drbd_get_capacity(nbc->backing_bdev); in drbd_adm_attach()
2924 if (device->ldev->known_size != drbd_get_capacity(device->ldev->backing_bdev)) in drbd_adm_resize()
2925 device->ldev->known_size = drbd_get_capacity(device->ldev->backing_bdev); in drbd_adm_resize()
3394 s->dev_size = drbd_get_capacity(device->this_bdev); in device_to_statistics()
3835 drbd_get_capacity(device->this_bdev)) || in nla_put_status_info()
Ddrbd_main.c986 p->c_size = cpu_to_be64(trigger_reply ? 0 : drbd_get_capacity(device->this_bdev)); in drbd_send_sizes()
3107 buffer->la_size_sect = cpu_to_be64(drbd_get_capacity(device->this_bdev)); in drbd_md_write()
3165 device->ldev->md.la_size_sect = drbd_get_capacity(device->this_bdev); in drbd_md_sync()
3219 sector_t capacity = drbd_get_capacity(bdev->md_bdev); in check_offsets_and_sizes()
Ddrbd_receiver.c1862 const sector_t capacity = drbd_get_capacity(device->this_bdev); in read_in_block()
2851 capacity = drbd_get_capacity(device->this_bdev); in receive_DataRequest()
4119 cur_size = drbd_get_capacity(device->this_bdev); in receive_sizes()
4245 if (device->ldev->known_size != drbd_get_capacity(device->ldev->backing_bdev)) { in receive_sizes()
4246 device->ldev->known_size = drbd_get_capacity(device->ldev->backing_bdev); in receive_sizes()
4255 drbd_get_capacity(device->this_bdev) || ldsc) { in receive_sizes()
Ddrbd_worker.c593 const sector_t capacity = drbd_get_capacity(device->this_bdev); in make_resync_request()
771 const sector_t capacity = drbd_get_capacity(device->this_bdev); in make_ov_request()
Ddrbd_actlog.c868 nr_sectors = drbd_get_capacity(device->this_bdev); in __drbd_change_sync()
Ddrbd_req.c909 nr_sectors = drbd_get_capacity(device->this_bdev); in drbd_may_do_local_read()