Searched refs:meta_dev_idx (Results 1 – 5 of 5) sorted by relevance
517 s32 meta_dev_idx; member1739 switch (bdev->md.meta_dev_idx) { in drbd_md_first_sector()1755 switch (bdev->md.meta_dev_idx) { in drbd_md_last_sector()1783 switch (bdev->md.meta_dev_idx) { in drbd_get_max_capacity()1812 const int meta_dev_idx = bdev->md.meta_dev_idx; in drbd_md_ss() local1814 if (meta_dev_idx == DRBD_MD_INDEX_FLEX_EXT) in drbd_md_ss()1819 if (meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_md_ss()1820 meta_dev_idx == DRBD_MD_INDEX_FLEX_INT) in drbd_md_ss()1824 return MD_128MB_SECT * bdev->md.meta_dev_idx; in drbd_md_ss()
836 switch (bdev->md.meta_dev_idx) { in drbd_md_set_sector_offsets()1687 (new_disk_conf->meta_dev_idx < 0) ? (void*)device : (void*)drbd_m_holder, in open_backing_devices()1690 (new_disk_conf->meta_dev_idx != DRBD_MD_INDEX_FLEX_INT && in open_backing_devices()1691 new_disk_conf->meta_dev_idx != DRBD_MD_INDEX_INTERNAL)); in open_backing_devices()1714 ldev->md.meta_dev_idx < 0 ? in drbd_backing_dev_free()1807 if (new_disk_conf->meta_dev_idx < DRBD_MD_INDEX_FLEX_INT) { in drbd_adm_attach()1828 (new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_INTERNAL || in drbd_adm_attach()1829 new_disk_conf->meta_dev_idx == DRBD_MD_INDEX_FLEX_INT)) { in drbd_adm_attach()1858 if (new_disk_conf->meta_dev_idx < 0) { in drbd_adm_attach()1864 min_md_device_sectors = MD_128MB_SECT * (new_disk_conf->meta_dev_idx + 1); in drbd_adm_attach()[all …]
3145 if (in_core->meta_dev_idx >= 0) { in check_offsets_and_sizes()3184 in_core->meta_dev_idx, in check_offsets_and_sizes()3220 bdev->md.meta_dev_idx = bdev->disk_conf->meta_dev_idx; in drbd_md_read()
980 switch (bdev->md.meta_dev_idx) { in drbd_md_last_bitmap_sector()
108 __s32_field(3, DRBD_F_REQUIRED | DRBD_F_INVARIANT, meta_dev_idx)